Question: Python: In a file called LastNameFirstInitial _ twttr . py , implement a program that prompts the user for a str of text and then
Python: In a file called LastNameFirstInitialtwttrpy implement a program that prompts the user for a str of text and then outputs that same text but with all vowels A E I, O and U omitted, whether inputted in uppercase or lowercase.
Additionally, your program must include:
comments with your name, date, program name, and program purpose.
a main function with if namemain: code. See this tutorial from module
Hints
Recall that a str comes with quite a few methods, per docs.python.orglibrarystdtypeshtml#stringmethodsLinks to an external site..
Much like a list, a str is iterable which means you can iterate over each of its characters in a loop. For instance, if s is a str you could print each of its characters, one at a time, with code like:
for c in s:
printc end
How to Test
Heres how to test your code manually:
Run your program. Type Twitter and press Enter. Your program should output:
Twttr
Run your program. Type What's your name? and press Enter. Your program should output:
Whts yr nm
Run your program. Type COP and press Enter. Your program should output
CP
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
