Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started