Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 538 Bytes

5-letter-words.md

File metadata and controls

12 lines (7 loc) · 538 Bytes

How many 5-letter words are there?

Tags: minimicro, farmtronics

Read the /sys/data/englishWords.txt, and count the number of 5-letter words therein.

Hints

You'll need to use the file module to read all lines of the file. The result will be a list, which you can iterate over with a for loop. Check the length of each string using len, and if that length is 5, add 1 to a counter.