Classes
Ifs
Files
Loops
Functions
100
This method is automatically called when an object is instantiated.
What is the constructor?
100
This statement checks a condition once before executing a block of code.
What is an 'if' statement?
100
This file operation will read the entire contents of a file.
What is read()?
100
This loop can traverse over the individual elements in a list or String.
What is a for loop?
100
This keyword is used in Python to define a new function.
What is def?
200
This parameter variable is used to access instance variables of the object on which the method is invoked.

What is the self reference?

200
This boolean operator checks if the value on the left is greater than the value on the right.
What is >?
200
This python loop will traverse over each newline in an open file.
What is a for loop?
200
This loop continues to iterate as long as a condition is True.
What is a while loop?
200
This keyword is used in a function to output a value and end the function.
What is return?
300
This is the level of access that should be applied to all instance variables.
What is private?
300
This boolean operator checks if two values are not equal.
What is !=?
300
This is the second parameter passed in an open() function, and indicates what the file is being opened for.
What is the file mode?
300
This is a type of loop that never stops iterating.
What is an infinite loop?
300
These are the values passed into a function.
What are parameters or arguments?
400
Adding this to the beginning of an instance variable will make it private.
What are two underscores (__)?
400
This is an if statement inside another if statement.
What is a nested if?
400
This keyword will both open a file, and close it automatically once you leave the statement block.
What is with?
400
This function can be used with the for loop to iterate within a specific range of numbers.
What is the range() function?
400
This is the value computed and returned back from the function.
What is return value?
500
These can be added to a constructor to provide different ways of creating an object.
What are default arguments?
500
This keyword is used to add additional branches to an if/else block. (HINT: it is always followed by a condition)
What is elif?
500
These attributes are shared by all objects of a class.
What are class variables?
500
These keywords are used to exit out of a running loop.
What is break or return?
500
This is the area of the program in which an object is visible.
What is scope?
M
e
n
u