Conditions
Arrays and Dictionaries
Loops
Variables
Syntax
100

How every condition ends.

What is a colon.

100

A declaration of an empty array with the name "myArray".

What is []

100

This type of loop was used for iterating through the different elements in the todo list.

What is for.

100

How you declare a variable x with a value of 10.

What is "x=10"

100

Anything that comes after the # character in code.

What is a comment.

200

Short for "else, if"

What is elif.
200

A declaration of an empty dictionary with the name "myDict".

{}

200

This type of loop repeatedly loops until a condition is not met.

What is while.

200

If x = len(myArray) when myArray has 5 elements, what is the value of x after 3 more elements are added to myArray.

What is 5.

200

The equals (=) and double equals (==) do different things. = is used to set variables, and == is used for this.

What is comparison/equality/conditions.

300

A conditional statement that can only be used after an if. Each if can only have one of these.

What is else.

300

The function to get the length of an array.

What is len

300

A never ending while loop.

What is while (True).

300

How you declare a variable hello with a value of "World".

What is hello = "World"

300

The built in function for getting text from the user.

What is input.

400

Tossing this into a condition will "reverse" it (make it false if it is true, make it true if it is false).

What is not.

400

Accesses the first element of the array stored in the "previousOwners" key of the dictionary "car".

What is car["previousOwners"][0]

400

The built in function useful for creating arrays of sequential whole number (ex: [0, 1, 2, 3, ...]) to iterate through.

What is range.

400

The quality that the values "1" and 1 differ in.

What is type.

400

The value printed by:

print(len("abc"[1]))

What is 1.

500

Two ways to test equality.

== and =.

500

Accesses 3 elements of the array myArray, starting at index 2.

What is myArray[2:5]

500

What will be printed as the result of this loop:

x = 1

while (x < 10):

  x = x + (x * 2)

print(x)

27
500

The function to convert from a number to a string. Example:

print("Magic number: " + f(number))

What is str

500

The character to access the methods of an object.

What is .