Just setting up my twttr

When texting or tweeting, it’s not uncommon to shorten words to save time or space, as by omitting vowels, much like Twitter was originally called twttr. In a file called 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.
Hints
- Recall that a
strcomes with quite a few methods, per docs.python.org/3/library/stdtypes.html#string-methods. - Much like a
list, astris “iterable,” which means you can iterate over each of its characters in a loop. For instance, ifsis astr, you could print each of its characters, one at a time, with code like:
Before You Begin
From the root of your repository execute cd src/loops So your current working directory is ...
twttr.py where you’ll write your program.
How to Test
Here’s how to test your code manually:
- Run your program with
python twttr.py. TypeTwitterand press Enter. Your program should output: - Run your program with
python twttr.py. TypeWhat's your name?and press Enter. Your program should output: - Run your program with
python twttr.py. TypeCS50and press Enter. Your program should output:
Pytest
You can execute the below to check your code using pytest from the root directory.
A green output from running the test means it was successful. A red output means there is a bug in your code that you need to fix.
How to Submit
From github desktop or the command line, commit your changes and push them to your repository.
Codespaces
If you are using codespaces, you can commit your changes directly from the Codespace interface. Click on the Source Control icon in the left sidebar, then click on the "..." button and select "Commit to main". Enter a commit message and click "Commit".
Codespace terminal or your local terminal.
Note
You will need to have installed git-scm for this to work locally
At the /datatypes $ prompt in your terminal:
Note
Remember to replace "your message here" with a meaningful commit message that describes your changes.