Beginning Python

We have changed our list by adding two more items to the end of it. We add an integer, 7 and a new string, "quail". Each is still separated by a comma:

list.py
my_list = ["cat", "dog", "horse", 7, "quail"]

print(my_list)
$
python list.py
['cat', 'dog', 'horse', 7, 'quail']

Here we edit our list so that the items are all in a different order:

list.py
my_list = ["quail", "cat", 7, "dog", "horse"]

print(my_list)
$
python list.py
['quail', 'cat', 7, 'dog', 'horse']