Python Basics
Data Types
Input & Output
Strings & Syntax
Tkinter
100

What is the name of the program that we use for coding?

Thonny

100

What is the data type "int" refers to?

Integer - (whole number)


100

What is the command for the output on the shell of Python?

print()

100

What is the sequence of characters for a break line in Python?

\n

100

What is the name of the library to create a GUI's?

Tkinter

200

What is the command that we use for comments on Python?

#

200

What is the data type "float" refers to?

A numeric data type that represents decimal numbers

200

What function is used to ask the user for an entry?

input()

200

Which symbol is used to create a string?

" "

200
What is the line that will keep open the interface?

mainloop()

300

Can you use spaces to define a variable on Python? 

False

300

What is the data type "bool" refers to?

Boolean value (true or false)

300

What data type does input() return by default?

string

300

What does this code print?

print("Hello\nWorld")


Hello

World

300

Why does a Tkinter widget not appear if pack(), grid(), or place() is not used?

Because the widget is created but not placed in the window layout.

400

What symbol is used to assign a value to a variable in Python?

=

400

What is the data type "str" refers to?

string - chain of characters

400

Which line correctly converts user input to an integer?

age = int(input())

400

Which of the following is a valid string?

'Hello

Hello"

Hello

"Hello"

"Hello"

400
What is the line of code to change the type of letter on Tkinter?

Font = ("Arial", 14)

500

Why is this code incorrect?

age = input()
print(age + 5)


age is a string and cannot be added to a number

500

What is the data type of this value?
123

string

500

What happens if the user enters "hello" in this code?

x = int(input())


The program crashes with an error

500

What is the output of this code?

print("5" + "3")


53

500

What does the window.geometry() line does?

Define the size of the screen