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 LastNameFirstInitial_twttr.py, 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 __name__=='__main__': code. See this tutorial from module 5.
Hints
Recall that a str comes with quite a few methods, per docs.python.org/3/library/stdtypes.html#string-methodsLinks 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:
print(c, 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:
Wht's yr nm?
Run your program. Type COP2047 and press Enter. Your program should output
CP2047

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!