Exercise 2 · Chapter: ListsRequired+50 XP
Add to List
Start with an empty list called pets.
Use append() to add these 3 animals to the list: "cat", "dog", and "fish".
Then print the length of the list, followed by each pet on its own line.
Expected output
3 cat dog fish
Need a hint?
3 available · costs 5 XP each
python
Output
Run your code to see the output here.