Question: Exercise # 1 : Write a Python code that uses 4 iterations. In each iteration, it selects a random letter from the alphabet. If the
Exercise # :
Write a Python code that uses iterations. In each iteration, it selects a random letter from the alphabet.
If the selected letter is a vowel, it creates a substring from the alphabet starting from that vowel to then end.
If the selected letter is a consonant, it creates a substring starting from letter a to the selected consonant included
Note: Use seed to compare your results with sample run.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
