# Question 1-1
# What is the length of the following? (Try to answer first without running the code)
# Question 1-2 what is the type of the variable `a`
a = ["hello", 45, True, 321552]
a[1] = "bye"
del a[3]
a = a * 3
# Answer 1-1
len(a)
# Answer 1-2
# list
# you can also do type(a)
# Question 2
# What is a[4] from Question 1?
# Answer 2
a[4]
# Question 3
# From xyz = [342, 4.4534, "Bold", False] , formulate a code to return the following: [342, 4.4534, "Bold", False, "Message", 4432]
# Answer 3
xyz = [342, 4.4534, "Bold", False]
xyz.extend(["Message", 4432])
xyz
# Question 4
# Reorder the words to make a sentence. (Hint: Tongue Twister, Read the sentence in reverse)
ton = ['wish', 'to', 'wish', 'you', 'wish', 'the', 'wish', 'won’t', 'I', ',', 'wishes', 'witch', 'the', 'wish', 'the', 'wish', 'you', 'if', 'but', ',', 'wish', 'to', 'wish', 'you', 'wish', 'the', 'wish', 'to', 'wish', 'I']
# Answer 4
ton.reverse()
print(ton)
# Question 5
# In classroom A, there is Lily, Sam, Kevin, Jake and Ryan. Their zip codes are 14736, 83729, 56922, 30342 and 23568 respectively.
# Create a dictionary in {Key1: Value1, ...} format
# Answer 5
classroomA = {'Lily': 14736, 'Sam': 83729, 'Kevin':56922, 'Jake': 30342, 'Ryan': 23568 }
# Question 6
# A new student, Alice, arrives and her zip code is 78234. Add her information to the dictionary.
# Answer 6
classroomA['Alice'] = 78234
print(classroomA)
# Question 7
# Kevin moved his house and the new zip code is 93451. Make a change to the dictionary.
# Answer 7
classroomA['Kevin'] = 93451
print(classroomA)
# Question 8
# Jake is homeless now. Make a change to the dictionary.
# Answer 8
del classroomA['Jake']
print(classroomA)
# Question 9
# Print the names of the students in classroom A currently.
# Answer 9
list(classroomA.keys())
# Question 10
# Print the zip codes of the students in classroom A currently.
# Answer 10
list(classroomA.values())