Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!