Question: Use Python to write a program that reads in a line of input as a string and prints using for-loops. Write a program that reads

Use Python to write a program that reads in a line of input as a string and prints using for-loops.  Use Python to write a program that reads in a line

Write a 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 e. The position of the vowels in the string. Note: every section should implement a for loop! Sample input/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 Do not forget to include your header, algorithm and commen

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!