Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions