Functions, Classes, Pygame
Variables, Operators, Conditionals
Lists/Loops
General Python
Instructor Facts
100

This keyword is used to define a new function in Python.

What is def?

100

This character denotes the division operator.

What is the forward slash (/) ?

100

This keyword is used to exit out of a running loop.

What is break or return?

100

To comment a line in Python, you use this/these character(s).

What is a hash sign (#) ?

100

Adrian thinks this is the best game ever made.

What is Minecraft?

200

These characters must be put at the end of every function call.

What are parenthesis?

200

This common variable type stores letters, numbers, and symbols.

What is a string?

200

This method, or built-in function, is used to add items to a list.

What is append()?

200

Name 4 data types in Python.

What are integers, floats, strings, and booleans?

200

Josh has a trait that approximately 10% of the population has.

What is being left-handed?

300

What is the output of the following code?


What is 42?

300

This commonly used statement checks the validity of a condition before executing code.

What is an 'if' statement?

300

This commonly used Python data structure contains a collection of items referenced by a numeric index.

What is a list?

300

This keyword allows us to load a module in Python.

What is 'import' ?

300

There is a website with the same name as this instructor.

Who is Preksha?

400

This function is used to draw a rectangle in Python. Include the input parameters.

What is pygame.draw.rect(surface, color, pygame Rect object)?

400

What is the output of the following code?

x = 10, y = 15

if x > 5: print ("x is greater than 5")

elif y < 15: print ("y is less than 15")

else: print ("Neither condition is true")

What is 'x is greater than 5' ?

400

This flow control statement loops through a set of code and allows code to be executed repeatedly, depending on whether a condition is met.

What is a for or while loop?

400

This operator "glues" two strings together.

What is the concatenation (+) operator?

400

Name the three instruments that Adheesh can play.

What are piano, flute, and tabla (Indian drums)?

500

This function gives boolean values that indicate whether a key is pressed or not.

What is pygame.key.get_pressed()?

500

Denoted as '%', this operator returns the remainder of a division operation.

What is the modulus?

500

What is the output of the following code?

for x in range(1, 10, 2):

print (x)

What is 1, 3, 5, 7, 9 ?

500

Which one is NOT a legal variable name? 

_helloworld

Helloworld

hello_world

hello-world

What is hello-world (hyphen) ?

500

This instructor has hypermobile fingers.

Who is Atharva?