Count the lower 'e' in the 'words' file

Created by Julien Palard


You should work on this exercise with your own installation of Python, on your computer. Learn how for Mac OSX or Windows.

Create a script which opens a file called words.txt located in the same folder and print the number of occurences of the letter e in its content.


Remember :

>>> for i in "foo":
...     print(i)

There's no corrections yet, hit the `Submit` button to send your code to the correction bot.

Keyboard shortcuts:

  • Ctrl-Enter: Send your code to the correction bot.
  • Escape: Get back to the instructions tab.

See solutions