Strings
Errors/Exceptions
Loops
Files
Mystery
100

The function to get the length of a string.

What is len(str)?

100

This error prevents the program from starting.

What is a syntax error?

100

This loop will keep running as long as a condition is true, good for when you don't know how many times it will need to loop.

What is while(condition)?

100

The function used to open a file, and the function used to close a file.

What is open() and close()?

100

The three conditional statements.

What is if, elif, and else?
200

The function to convert a type to a string.

What is str(var)?

200

This error crashes the program, but allows it to start. Often called an "exception". 

What is a runtime error?

200

Keyword that exits the current loop immediately.

What is break?

200

Skip a line using this function.

What is next(file)?

300

The function to remove the whitespace from the beginning and end of a string.

What is .strip()?

300

The program starts and doesn't crash, but this error makes it so it doesn't quite work the way it should.

What is a semantic error?

300

Loop that executes a specific block of code a specified number of times.

What is for()?

300

Used to parse through a file.

What is a for loop?

300

Used in place of "magic numbers" and can be accessed by any function in the program.

What is a constant?

400

The function used to divide a string based on a given delimiter.

What is .split()?

400

This is all the information provided by a stack trace.

What is the error type, line of code that most recently crashed, and an error message?

400

This function used in loops doesn’t actually make a list, but creates this type of iterable object instead.

What is a range?

400

Use this line of code to open a file and automatically close it once its done being read.

What is
with open(filename) as file:
?

400

A range that includes the numbers from 0 to 10.

What is range(0, 11).

500

This character encoding standard represents letters and symbols as numbers.

What is ASCII?

500

Usually used in testing, raise an exception manually.

What is raise?

500

Keyword that stops the current iteration of the loop and skips to the next one.

What is continue?

500

Function in the csv module that is used to read a CSV file.

What is .reader(csv_file)?

500

In a try/except block, this clause runs no matter what, even if an error occurs.

What is finally?