The symbol used to combine text and a variable in a print() statement
What is a plus sign (+) ?
The number of quotation marks that are required at the beginning and end when creating a multi-line string.
What is three?
The data type of this variable:
thing = "5.4"
What is a string?
This statement will catch everything that is not included in the IF statement.
What is the ELSE statement?
The name of these symbols:
[]
What are square brackets?
The key the user needs to press after typing their input.
What is the enter key?
The output when you use string.lower() or string.upper() on an integer data type.
What is an error?
What will print out with the following code? print("4" * 3)
444
The symbol is used to check if two values are equivalent in a conditional.
What is ==?
True or False:
All items in a list MUST be the same data type.
False!
Debug this code:
height = input(How tall are you?)
height = input("How tall are you?")
What will the following code print out?
string1 = "Bunjee jumping sounds scary."
print(string1[6])
A space
The data type that inputs are automatically.
What are strings?
Write a conditional to check if the variable berry is equal to the string "red"
if berry == "red":
The length of the list:
nums = [6, 8, 3, 6, 2]
What is five?
What will the following code snippet output if the user inputs cat for favorite_animal?
favorite_animal = input('What is your favorite animal?')
print('You said your favorite animal is a ' + favorite_animal + '!')
You said your favorite animal is a cat!
What would this code output?
string = "I love otters so much!" print(string.replace("otters", "manatees"))
I love manatees so much!
Debug the following code. Assume you are converting the variable named pumpkins to an integer.
pumpkins = int"3"
pumpkins = int("3")
The symbol to check if two values are not equal.
What is != ?
The item at index 3.
cats = ["calico", "orange", "tabby", "tuxedo"]
What is tuxedo?
Create a variable called food and assign it to user input using the prompt "What is your favorite food?"
food = input("What is your favorite food?")
Print out how many letters are in a string variable called "songType".
print(len(songType))
Print out what the following value turn into if it were converted to an integer:
5.68
5
True or False
You should indent your elif statement to be one indent further than your if statment.
False!
The command to add to the back of a list.
What is append?