Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 \# 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 vowelStep 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