Question: Python program write a program that asks user to enter a word (any sequence of characters) put your program in file repeatingVowels.py if no vowel
Python program
write a program that asks user to enter a word (any sequence of characters)
put your program in file repeatingVowels.py
if no vowel appears next to itself (e.g. hello), then print: no vowel repeats
if exactly one vowel is repeated in sequence at least once (e.g. committee) then print a message that indicates which vowel repeats: only vowel e repeats
if more than one vowel repeats (e.g. green door) then print: more than one vowel repeats
ignore upper case - lower case differences: assume all the input is always lowercase
Examples:
% python3 repeatingVowels.py enter word: python no vowel repeats % python3 repeatingVowels.py enter word: one python two python no vowel repeats % python3 repeatingVowels.py enter word: door only vowel o repeats % python3 repeatingVowels.py enter word: the door is open only vowel o repeats % python3 repeatingVowels.py enter word: I see a deer and a door more than one vowel repeats % python3 repeatingVowels.py enter word: I like to see python only vowel e repeats
Professor has us test it with a java program, i believe we can only use conditionals.
https://gyazo.com/d3d5685a122467a8f35cdd51853ff0d6
error messsage tester giving, used code previously posted on here.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
