eieio Python

The file eieio.txt contains a list of over 700 English words containing the bigram “ei” or “ie”. We wish to test the spelling rule: “i” before “e” except after “c”. Complete the code below that will count the number of times each of the following occurs:the bigram “ie” appears in a word
the bigram “ei” appears in a word
the trigram “cie” appears in a word
the trigram “cei” appears in a word
Print these numbers out one per line in the order specified above.Your code# TODO: complete the codefh = open(‘eieio.txt’, ‘r’)

×
New Download