Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON 1. write a program that asks user to enter a word (any sequence of characters) 2. put your program in file repeatingVowels.py 3. if

PYTHON

1. write a program that asks user to enter a word (any sequence of characters)

2. put your program in file repeatingVowels.py

3. if no vowel appears next to itself (e.g. hello), then print: no vowel repeats

4. 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

5. if more than one vowel repeats (e.g. green door) then print: more than one vowel repeats

6. ignore upper case - lower case differences: assume all the input is always lowercase

EXAMPLE:

enter word: python no vowel repeats

Example:

enter word: door only vowel o repeats

Example:

enter word: I see a deer and a door more than one vowel repeats

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

101 Database Exercises Text Workbook

Authors: McGraw-Hill

2nd Edition

0028007484, 978-0028007489

More Books

Students also viewed these Databases questions