Print & Syntax
Variables & Data Types
Math with Python
Loops & Logic
Functions & Fun Facts
100

Which command do you use to display text on the screen in Python?

What is print()?

100

Which of these is a valid variable name?

A) 2name

B) student_age


What is student_age?

100

What is 2+ 3 * 2 in Python?

What is 8?

100

What keyword is used to start a loop that repeats a set of number of times?

What is "for"?

100

What keyword is used to define a function?

What is def?
200

Which of these is Correct?

A) print Hello

B) print("Hello")

What is B?

200

What data type is "Python"?

What is String (str)?

200

What operator is used for exponentiation (powers) in Python?

What is **?

200

What keyword is used to start a loop that runs while a condition is true?

What is "while"?
200

Which of these is a correct function definition?

A) My function Function():

B) def myFunction():

What is B?

300

How do you write a single-line comment in Python?

What is #?

300

If x=5, what is the type of x?

What is Integer (int)?

300

What will 7 // 2 return?

What is 3 (floor division)?

300

What does this code print?

for i in range(3): print(i)

What is 0 1 2?

300

What does the len() function return?

What is the length of a sequence?

400

What happens if you forget the quotes in print(Hello)?

What is Error (Hello no defined)?

400

What is the value of y after y = "10" + "5"?

What is "105" (string concatenation)?

400

What is the output of 10 % 3?

What is 1 (remainder)?

400

Which operator means 'equal to' in a condition?

What is ==?

400

What will this print?

def greet(): return 'Hello!'

print(greet())

What is Hello! ?

500

True or False: Python code blocks use curly braces {} like Java?

What is False - Python uses indentation?

500

What keyword can you use to check the type of a variable?

What is type()?

500

If x = 5, what's the difference between x / 2 and x // 2?

What is 2.5 ( / ) and 2 ( // )?

500

What will happen here?

x = 0

while x < 3:

     print(x)


What is an infinite loop (x never changes)?

500

Fun Fact! Who created Python?

Who is Guido van Rossum?