Vocabulary
Python Math
Modulus
String Methods
Debugging
100

Another word for string.

What is String Literal?

100

What is the output of this code? 

rocks = 20 

print(rocks / 5)

What is 3.0?

100

What is the symbol for Modulus?

What is percent (%)?

100

Makes all characters in the string uppercase?

What is Upper Method?

100

What would the code output?

string = "My favorite animal is the dog!" print(string.rfind("d"))

What is 26?

200

A keyword that specifically changes a program in a certain way.

What is Python Method?

200

What will the following print out? 

print(6 / 2 * 3 + 5 - 1)

What is 13?

200

What does the Modulus measure?

What is the remainder?

200

Changes a specific character or characters in a string to something else.

What is Replace Method?

200

What will the following code print?

string1 = "I love extra butter on my popcorn." print(string1[7])

What is e?

300

Measures the remainder of a division.

What is Modulus?

300

If the value of 'a' is 10 and 'b' is 3, what will be the output of the following code?

c = a * b 

print(c)  

What is 30?

300

What will the following code output?

21 % 2

What is 5?

300

Use colons in brackets to print specific parts of a string.

What is slicing?

300

What will the following code print?

string1 = "I love Python Coding." 

print(string1[9])

What is t?

400

A string that takes up more than one line.

What is Multiline String?

400

What is the output of the following code? 

apples = 10 

oranges = 5 

print(apples / oranges)

What is 2?

400

What will the following code output?

16 % 5

What is 1?

400

Locate the last occurence of a character in a string.

What is .rfind?

400

What will the following code print out?

string1 = "I love Starbucks."

 print(len(string1))

What is 17?

500

Measures what position a character or item is in the sequence.

What is Index Number?

500

If 'a' is assigned the value 18 and 'b' is assigned the value 2, what is the result of the following operation in Python? 

c = a / b 

print(c)

What is 9?

500

What will the following code output?

121 % 3

What is 3?

500

Removes all excess what space in a string.

What is Strip Method?

500

What will the following code print out?

string1 = "Popsicles are tasty!" 

print(string1.rfind("!"))

What is 19?