CJCoding With Joseph
15free / daySign inCreate account

Shout The Sentence

Read one sentence and print it in capital letters, then on a second line report how many vowels it contains in the form Vowels: <n>. Make the capital version with sentence.upper(), which returns a new string with every letter in upper case, then count the characters of that version that equal A, E, I, O or U using a for loop and one if with five comparisons joined by or. Input: one line, the sentence, no prompt; it may contain spaces.

Expected Output:

MAKE SOME NOISE
Vowels: 7

= newline. The output ends with a newline — print one after the last line.

Hints4 available
Topics:
Strings
📥 Auto-Input:
make some noise\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.