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

What is wrong with this variable name?

2LONG

Cannot start with a number

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

What will this print?

s = 'python'

print(s[2])

't'
200

What data type is '42'?

What is String (str)?

200

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

What is **?

200

What keyword stops a loop early?

What is "break"?

200

What keyword is used to send a value back from a function?

Return

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

How many times does this code print 'hello'

for i in range(1,5): print('hello')

4

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)?

 Error (Hello not 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

Java code blocks use curly braces {}, what does Python use

Python uses indentation

500

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

What is type()?

500

If x = 5, what is (x / 2 - x // 2)?

What is 0.5

500

This is an example of what?

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?