Exercise: count words


  • Create script called count_words.py
  • Skeleton:


examples/dictionary/count_words_skeleton.py

words = ['Wombat', 'Rhino', 'Sloth', 'Tarantula', 'Sloth', 'Rhino', 'Sloth']

Expected output: (the order is not important)

Wombat:1
Rhino:2
Sloth:3
Tarantula:1