Created
April 28, 2020 06:46
-
-
Save computer-tutor/f0ecd79c39afd055386cd37bda3b56fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f = open('Poem.txt', 'r') | |
c_to=0 | |
c_the=0 | |
for line in f: | |
c_to += line.count('to') | |
c_the += line.count('the') | |
print(c_to) | |
print(c_the) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment