Another word for string.
What is String Literal?
What is the output of this code?
rocks = 20
print(rocks / 5)
What is 3.0?
What is the symbol for Modulus?
What is percent (%)?
Makes all characters in the string uppercase?
What is Upper Method?
What would the code output?
string = "My favorite animal is the dog!" print(string.rfind("d"))
What is 26?
A keyword that specifically changes a program in a certain way.
What is Python Method?
What will the following print out?
print(6 / 2 * 3 + 5 - 1)
What is 13?
What does the Modulus measure?
What is the remainder?
Changes a specific character or characters in a string to something else.
What is Replace Method?
What will the following code print?
string1 = "I love extra butter on my popcorn." print(string1[7])
What is e?
Measures the remainder of a division.
What is Modulus?
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?
What will the following code output?
21 % 2
What is 5?
Use colons in brackets to print specific parts of a string.
What is slicing?
What will the following code print?
string1 = "I love Python Coding."
print(string1[9])
What is t?
A string that takes up more than one line.
What is Multiline String?
What is the output of the following code?
apples = 10
oranges = 5
print(apples / oranges)
What is 2?
What will the following code output?
16 % 5
What is 1?
Locate the last occurence of a character in a string.
What is .rfind?
What will the following code print out?
string1 = "I love Starbucks."
print(len(string1))
What is 17?
Measures what position a character or item is in the sequence.
What is Index Number?
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?
What will the following code output?
121 % 3
What is 3?
Removes all excess what space in a string.
What is Strip Method?
What will the following code print out?
string1 = "Popsicles are tasty!"
print(string1.rfind("!"))