Datatypes
Vocabulary
String Methods
List Methods
Class Trivia
100

What is the datatype of x?

x = "True"

String

100

What do you call this>> %

Modulus

100

What function do we use to check if a string is all uppercase?

isupper()

100

What function do we use to add something to the end of a list?

append()

100
Who are my cats?

Momo and Zuko

200

What is the datatype of x?

x = int("29")

Int

200

What do you call it when you combine two strings together?

Concatenation

200

What function do we use when we want to determine if a string is made up of numbers and letters?

isalnum()

200

What function do we use to flip the order of a list?

reverse()

200
What company did I work at before teaching?

Amazon

300

What is the datatype of x?

x = " ".join([2, 4, 6])

String

300
What do you call something that belongs inside the parenthesis of a function?

Parameter

300

What function do we use when we want to capitalize the first letter of every word in a string?

title()

300

What function do we use to sort a list from Z to A and from 9 to 1 (descending order)

sort(reverse=True)

300

What is my favorite video game?

Fallout

400

What is the datatype of x?

x = "01/28/2025".split("/")

List

400

What do you call the number that corresponds to the position of an element in a list?

Index
400

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()

400

What function do we use to combine two lists together?

extend()

400

What is my favorite soda? (Hint: Yeehaw)

Dr. Pepper

500

What is the datatype of z?

x = "21"

y = ["7", "14"]

y.append(x)

z = y[0].isdigit()

Boolean

500

What do you call it when an object cannot be modified after creation (e.g., tuple, str)?

Immutable

500

This is called a ______ string>> f"Name: {name}"

Formatted

500

What function do we use to convert a list into a string?

join()

500

What is my favorite chip? (Hint: It's the second-favorite chip of any Mexican)

Lays Limon