Which command do you use to display text on the screen in Python?
What is print()?
Which of these is a valid variable name?
A) 2name
B) student_age
What is student_age?
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?
Which of these is Correct?
A) print Hello
B) print("Hello")
What is B?
What data type is "Python"?
What is String (str)?
What operator is used for exponentiation (powers) in Python?
What is **?
What keyword is used to start a loop that runs while a condition is true?
Which of these is a correct function definition?
A) My function Function():
B) def myFunction():
What is B?
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)?
What does this code print?
for i in range(3): print(i)
What is 0 1 2?
What does the len() function return?
What is the length of a sequence?
What happens if you forget the quotes in print(Hello)?
What is Error (Hello no 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! ?
True or False: Python code blocks use curly braces {} like Java?
What is False - Python uses indentation?
What keyword can you use to check the type of a variable?
What is type()?
If x = 5, what's the difference between x / 2 and x // 2?
What is 2.5 ( / ) and 2 ( // )?
What will happen here?
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?