This keyword is used to define a new function in Python.
What is def?
This character denotes the division operator.
What is the forward slash (/) ?
This keyword is used to exit out of a running loop.
What is break or return?
To comment a line in Python, you use this/these character(s).
What is a hash sign (#) ?
Adrian thinks this is the best game ever made.
What is Minecraft?
These characters must be put at the end of every function call.
What are parenthesis?
This common variable type stores letters, numbers, and symbols.
What is a string?
This method, or built-in function, is used to add items to a list.
What is append()?
Name 4 data types in Python.
What are integers, floats, strings, and booleans?
Josh has a trait that approximately 10% of the population has.
What is being left-handed?
What is the output of the following code?
What is 42?
This commonly used statement checks the validity of a condition before executing code.
What is an 'if' statement?
This commonly used Python data structure contains a collection of items referenced by a numeric index.
What is a list?
This keyword allows us to load a module in Python.
What is 'import' ?
There is a website with the same name as this instructor.
Who is Preksha?
This function is used to draw a rectangle in Python. Include the input parameters.
What is pygame.draw.rect(surface, color, pygame Rect object)?
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' ?
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?
This operator "glues" two strings together.
What is the concatenation (+) operator?
Name the three instruments that Adheesh can play.
What are piano, flute, and tabla (Indian drums)?
This function gives boolean values that indicate whether a key is pressed or not.
What is pygame.key.get_pressed()?
Denoted as '%', this operator returns the remainder of a division operation.
What is the modulus?
What is the output of the following code?
for x in range(1, 10, 2):
print (x)
What is 1, 3, 5, 7, 9 ?
Which one is NOT a legal variable name?
_helloworld
Helloworld
hello_world
hello-world
What is hello-world (hyphen) ?
This instructor has hypermobile fingers.
Who is Atharva?