Tuples
Lists
For Loops
Functions
Dictionaries
100

What symbol do you use to declare tuples?

()

100

How do you declare a list?

[]
100

How can you run through each element of a data structure?

for variable in my_datastructure:


100

How do you change a string to a list?

list()

100

How do you define a dictionary?

{}

200

What is one instance where you can change the elements of a tuple?

When a mutable data type is in it.

200

What is one instance where you cannot change the elements of a list?

When an immutable data type is in it.

200

How do you terminate a for loop?

break

200

How do you use join()?

character_you_split_by.join(list_you_are_converting)

200

A dictionary value is assigned to a ____.

key

300

What is one thing you cannot do to a tuple?

Change its elements.

300

What does the term homogenous mean in relation to lists?

Lists usually contain data of the same type.
300

How do you go to the beginnig of a for loop?

continue

300

How do you make a string uppercase?

string.upper()

300

Once you have created a dictionary, how do you change one of its elements? (Use vocabulary words and write the format on the board)

dictionary_name[key] = value

400

How can you change a tuple's elements?

Rewrite it with different elements.

400

How specifically can you change an element of a list?

my_list[index] = element

400

How would you count the elements in a data structure with a for loop?

count = 0

for character in data_structure:

     count += 1

print(count)

400

How do you make a string lowercase?

string.lower()

400

What is the main difference between a dictionary and a list?

A list only stores elements, while a dictionary stores elements which can have their own separate value.

500

Create an empty tuple with the number 5.

(5,)

500

What does heterogenous mean in relation to lists?

Lists can contain data of different types.
500

How do you use two variables as your increment in a for loop?

enumerate()

500

How do you use a program to see if a letter is uppercase without using .isupper()?

if letter != letter.lower():

       print("It is uppercase.")

500

Create a dictionary with the names Charlie Brown, John Adams, and Mark Green and assign only a blank as their elements. Create a program to assign the number of LETTERS in the name to each key and print the final dictionary. You have 4 minutes. Write the code on the board.

names = {

    "Charlie Brown": "",

    "John Adams": "",

    "Mark Green": ""

}

for name in names:

    letters = 0

    for letter in name:

        if letter.isalpha() == True:

            letters += 1

    names[name] = letters

print(names)