Chapter 4
4.1 Favorite animals
# Create list of favorite animals and print it
favorite_animals = ["dachshund", "toy poodle", "cat", "turtle", "axolotl"]
print(favorite_animals)
# Print how many favorite animals you have
print("I have", len(favorite_animals), "favorite animals.")
# Use the first favorite animal in a sentence
print("The", favorite_animals[0], "is my first favorite animal.")
# Use the last favorite animal in a sentence
print("The", favorite_animals[-1], "is the last favorite animal on my list.")
4.2 Favorite nap spots
fav_nap_spots = ["window", "cardboard box", "human's lap", "luxurious cat bed"]
# Remove the luxurious cat bed from the list (last item)
fav_nap_spots.pop()
# Add "keyboard" as first item on the list
fav_nap_spots.insert(0, "keyboard")
# Insert "sunbeam on the floor...