Which command do you use to display text on the screen in Python?
What is print()?
What is wrong with this variable name?
2LONG
Cannot start with a number
What is 2+ 3 * 2 in Python?
What is 8?
What keyword is used to start a loop that repeats a set of number of times?
What is "for"?
What keyword is used to define a function?
What will this print?
s = 'python'
print(s[2])
What data type is '42'?
What is String (str)?
What operator is used for exponentiation (powers) in Python?
What is **?
What keyword stops a loop early?
What is "break"?
What keyword is used to send a value back from a function?
Return
How do you write a single-line comment in Python?
What is #?
If x=5, what is the type of x?
What is Integer (int)?
What will 7 // 2 return?
What is 3 (floor division)?
How many times does this code print 'hello'
for i in range(1,5): print('hello')
4
What does the len() function return?
What is the length of a sequence?
What happens if you forget the quotes in print(Hello)?
Error (Hello not defined)?
What is the value of y after y = "10" + "5"?
What is "105" (string concatenation)?
What is the output of 10 % 3?
What is 1 (remainder)?
Which operator means 'equal to' in a condition?
What is ==?
What will this print?
def greet(): return 'Hello!'
print(greet())
What is Hello! ?
Java code blocks use curly braces {}, what does Python use
Python uses indentation
What keyword can you use to check the type of a variable?
What is type()?
If x = 5, what is (x / 2 - x // 2)?
What is 0.5
This is an example of what?
x = 0
while x < 3:
print(x)
What is an infinite loop (x never changes)?
Fun Fact! Who created Python?
Who is Guido van Rossum?