Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python question. Problem description Ask the user for a string and then print it back out but with all vowels in uppercase and all consonants

Python question.

Problem description

Ask the user for a string and then print it back out but with all vowels in uppercase and all consonants in lowercase. A vowel is one of the letters A, E, I, O, or U. A consonant is any letter that is not a vowel.

Example 1

Please enter a string: I am 12 YEARS OLD!!! I Am 12 yEArs Old!!!

Example 2

Please enter a string: Today, is a good day to die. tOdAy, Is A gOOd dAy tO dIE.

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

Students also viewed these Databases questions