Question: using python and for and while loops with if statements Exercise # 4: Write a program that generates a random word made of 4 consonants

 using python and for and while loops with if statements Exercise

using python and for and while loops with if statements

Exercise \# 4: Write a program that generates a random word made of 4 consonants and 4 vowels. Each randomly selected consonant is followed by a randomly selected vowel. Use the alphabet string given in Exercise 3 to create one string containing consonants and another one containing vowels. Use them for selecting the consonants and vowels. Hint: use randint function to generate a random index to be used to randomly select the consonant and vowel

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!