(PYTHON) Write a program that does the following: reads each line from a txt file and...

60.1K

Verified Solution

Question

Programming

  1. (PYTHON) Write a program that does the following:
    • reads each line from a txt file and convert it tolowercase
    • counts the number of instances of: the characters 'a','e','i','o' and 'u' in the file
    • creates a new file of file type .vowel_profile
    • print outs lines in the file indicating the frequencies of eachof these vowels
    • Example input/output files:
      • paragraph_from_wikipedia.txt (sample input) link:https://cs.nyu.edu/courses/fall19/CSCI-UA.0002-007/paragraph_from_wikipedia.txt
      • paragraph_from_wikipedia.vowel_profile (sample output) link:https://cs.nyu.edu/courses/fall19/CSCI-UA.0002-007/paragraph_from_wikipedia.vowel_profile

Please help!

Answer & Explanation Solved by verified expert
3.8 Ratings (547 Votes)
Given below is the code for the question PLEASE MAKE SUREINDENTATION IS EXACTLY AS SHOWN IN IMAGEPlease do rate the answer if it helped Thank    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students