Input / Output
Strings
Converting Data Types
Conditionals
Lists
100


The symbol used to combine text and a variable in a print() statement

What is a plus sign (+) ?

100

The number of quotation marks that are required at the beginning and end when creating a multi-line string.


What is three?

100

The data type of this variable:

thing = "5.4"

What is a string?

100

This statement will catch everything that is not included in the IF statement.

What is the ELSE statement?

100

The name of these symbols:

[]

What are square brackets?

200

The key the user needs to press after typing their input.

What is the enter key?

200

The output when you use string.lower() or string.upper() on an integer data type.

What is an error?

200

What will print out with the following code? print("4" * 3)

444

200

The symbol is used to check if two values are equivalent in a conditional.

What is ==?

200

True or False:

All items in a list MUST be the same data type.

False!

300

Debug this code:

height = input(How tall are you?)

height = input("How tall are you?")

300

What will the following code print out?

string1 = "Bunjee jumping sounds scary." 

print(string1[6])

A space

300

The data type that inputs are automatically.

What are strings?

300

Write a conditional to check if the variable berry is equal to the string "red"

if berry == "red":

300

The length of the list:

nums = [6, 8, 3, 6, 2]

What is five?

400

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!

400

What would this code output?

string = "I love otters so much!" print(string.replace("otters", "manatees"))

I love manatees so much!

400

Debug the following code. Assume you are converting the variable named pumpkins to an integer.

pumpkins = int"3"

pumpkins = int("3")

400

The symbol to check if two values are not equal.

What is != ?

400

The item at index 3.

cats = ["calico", "orange", "tabby", "tuxedo"]

What is tuxedo?

500

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?")

500

Print out how many letters are in a string variable called "songType".

print(len(songType))

500

Print out what the following value turn into if it were converted to an integer:

5.68

5

500

True or False

You should indent your elif statement to be one indent further than your if statment.

False!

500

The command to add to the back of a list.

What is append?

M
e
n
u