How every condition ends.
What is a colon.
A declaration of an empty array with the name "myArray".
What is []
This type of loop was used for iterating through the different elements in the todo list.
What is for.
How you declare a variable x with a value of 10.
What is "x=10"
Anything that comes after the # character in code.
What is a comment.
Short for "else, if"
A declaration of an empty dictionary with the name "myDict".
{}
This type of loop repeatedly loops until a condition is not met.
What is while.
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.
The equals (=) and double equals (==) do different things. = is used to set variables, and == is used for this.
What is comparison/equality/conditions.
A conditional statement that can only be used after an if. Each if can only have one of these.
What is else.
The function to get the length of an array.
What is len
A never ending while loop.
What is while (True).
How you declare a variable hello with a value of "World".
What is hello = "World"
The built in function for getting text from the user.
What is input.
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.
Accesses the first element of the array stored in the "previousOwners" key of the dictionary "car".
What is car["previousOwners"][0]
The built in function useful for creating arrays of sequential whole number (ex: [0, 1, 2, 3, ...]) to iterate through.
What is range.
The quality that the values "1" and 1 differ in.
What is type.
The value printed by:
print(len("abc"[1]))
What is 1.
Two ways to test equality.
== and =.
Accesses 3 elements of the array myArray, starting at index 2.
What is myArray[2:5]
What will be printed as the result of this loop:
x = 1
while (x < 10):
x = x + (x * 2)
print(x)
The function to convert from a number to a string. Example:
print("Magic number: " + f(number))
What is str
The character to access the methods of an object.