What is the datatype of x?
x = "True"
String
What do you call this>> %
Modulus
What function do we use to check if a string is all uppercase?
isupper()
What function do we use to add something to the end of a list?
append()
Momo and Zuko
What is the datatype of x?
x = int("29")
Int
What do you call it when you combine two strings together?
Concatenation
What function do we use when we want to determine if a string is made up of numbers and letters?
isalnum()
What function do we use to flip the order of a list?
reverse()
Amazon
What is the datatype of x?
x = " ".join([2, 4, 6])
String
Parameter
What function do we use when we want to capitalize the first letter of every word in a string?
title()
What function do we use to sort a list from Z to A and from 9 to 1 (descending order)
sort(reverse=True)
What is my favorite video game?
Fallout
What is the datatype of x?
x = "01/28/2025".split("/")
List
What do you call the number that corresponds to the position of an element in a list?
What function is used to split a string into a list of smaller parts, such as words? For example, this function can divide a sentence into words by splitting the string at each space.
split()
What function do we use to combine two lists together?
extend()
What is my favorite soda? (Hint: Yeehaw)
Dr. Pepper
What is the datatype of z?
x = "21"
y = ["7", "14"]
y.append(x)
z = y[0].isdigit()
Boolean
What do you call it when an object cannot be modified after creation (e.g., tuple, str)?
Immutable
This is called a ______ string>> f"Name: {name}"
Formatted
What function do we use to convert a list into a string?
join()
What is my favorite chip? (Hint: It's the second-favorite chip of any Mexican)
Lays Limon