What is the name of the program that we use for coding?
Thonny
What is the data type "int" refers to?
Integer - (whole number)
What is the command for the output on the shell of Python?
print()
What is the sequence of characters for a break line in Python?
\n
What is the name of the library to create a GUI's?
Tkinter
What is the command that we use for comments on Python?
#
What is the data type "float" refers to?
A numeric data type that represents decimal numbers
What function is used to ask the user for an entry?
input()
Which symbol is used to create a string?
" "
mainloop()
Can you use spaces to define a variable on Python?
False
What is the data type "bool" refers to?
Boolean value (true or false)
What data type does input() return by default?
string
What does this code print?
Hello
World
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.
What symbol is used to assign a value to a variable in Python?
=
What is the data type "str" refers to?
string - chain of characters
Which line correctly converts user input to an integer?
age = int(input())
Which of the following is a valid string?
'Hello
Hello"
Hello
"Hello"
"Hello"
Font = ("Arial", 14)
Why is this code incorrect?
age is a string and cannot be added to a number
What is the data type of this value?
123
string
What happens if the user enters "hello" in this code?
The program crashes with an error
What is the output of this code?
53
What does the window.geometry() line does?
Define the size of the screen