Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please do not import any modules - only use Python\'s built in functions. Also,

ID: 3861173 • Letter: P

Question

Please do not import any modules - only use Python's built in functions. Also, please include all necessary indentations.

A file named "ListOfEnglishWords.txt" is a text file with 8,000 English words - one word on each line. The word dry, fry, try and by have no vowels. There are also entries in the file such as "B-52", "D.C." and "pj's" that are technically not valid words: nevertheless, they are entries in the file that do not have a vowel. a. Write a program that determines the number of entries in the file without a vowel. b. Write a program that determines the longest word without a vowel.

Explanation / Answer

Below is the program which does the required thing,

a. it prints all the entries without vowels

b. along with that it prints the largest word without a vowel..

with open("ListOfEnglishWords.txt", "r") as ins:
largest_word = ""
print("Below are the words without Vowels:")
for word in ins:
if not set('aeiou').intersection(word.lower()):
print(word)
if(len(word) > len(largest_word)):
largest_word = word

print (" ")
print("Largest Word is : " + largest_word)

If you are satisfied with my answer please upvote else comment for clarification