Exercise: count words
- Create script called count_words.py
- Skeleton:
words = ['Wombat', 'Rhino', 'Sloth', 'Tarantula', 'Sloth', 'Rhino', 'Sloth']
Expected output: (the order is not important)
Wombat:1
Rhino:2
Sloth:3
Tarantula:1
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
words = ['Wombat', 'Rhino', 'Sloth', 'Tarantula', 'Sloth', 'Rhino', 'Sloth']
Expected output: (the order is not important)
Wombat:1
Rhino:2
Sloth:3
Tarantula:1