Fill the ____
parts of the code below.
# Let's create an empty list
my_list = ____
# Let's add some values
my_list.____("Python")
my_list.____("is ok")
my_list.____("sometimes")
# Let's remove 'sometimes'
my_list.____("sometimes")
# Let's change the second item
my_list[____] = "is neat"
# Let's verify that it's correct
assert my_list == ["Python", "is neat"]
original = ["I", "am", "learning", "hacking", "in"]
# Your implementation here
modified =
assert original == ["I", "am", "learning", "hacking", "in"]
assert modified == ["I", "am", "learning", "lists", "in", "Python"]
list1 = [6, 12, 5]
list2 = [6.2, 0, 14, 1]
list3 = [0.9]
# Your implementation here
my_list =
print(my_list)
assert my_list == [14, 12, 6.2, 6, 5, 1, 0.9, 0]