Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a python program that reads in a line of input as a string and prints using for-loops: a. Only the uppercase letters in the

Write a python program that reads in a line of input as a string and prints using for-loops:

a. Only the uppercase letters in the string.

b. Every second letter of the string.

c. The string, with all vowels replaced by an underscore.

d. The number of digits in the string .

Note: every section should implement a for loop!

Sample input/output

This is an example of the output:

Enter a string: Spelman1881

a) S

b) S e m n 8 1

c) Sp_lm_n1881

d) The number of digits is 4

e) The vowels are at positions: 2 5

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

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

4. Who would lead the group?

Answered: 1 week ago

Question

Where those not participating, encouraged to participate?

Answered: 1 week ago