Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Phyton Homework need help ASAP Due 5PM repl,it Random Ga back to classroom un import random 3 # Random-la) Have the computer choose a random

Phyton Homework need help ASAP Due 5PM image text in transcribed
image text in transcribed
image text in transcribed
repl,it Random Ga back to classroom un import random 3 # Random-la) Have the computer choose a random integer between 4 10. Have the user enter a number between 1 and 10. Save both 5 # numbers in variables. If the user's number matches the comput # number, print a message that the user won 7 If 9 10 # Random-1b) Create a list with the days of the week. Use a for/ also # out a random choice from this list 20 times Pyth withi modu repl.it (64) shot creator slasher 2k- YouTube Random Game Par Instructic r choose a random integer between 1 and umber between 1 and 10. Save both those e user's number matches the computer's t the user won. Random random . random If we want a value generat ith the days of the week. Use a for loop to printalso want a ga his list 20 times. Python has a ra within a range, module, we first random intege If we want to gene function The randint functio possible random val the end point here is (default, Dec 2015, 13:0511) on linux For example, x = random . rand will have a value of I Exercises Random 1a) Have the computer choose a random integer between 1 and 10. Have the user enter a number between 1 and 10. Save both those numbers in variables. If the user's number matches the computer's number, print a message that the user won. Random 1b) Create a list with the days of the week. Use a for loop to print outa random choice from this list 20 times

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

More Books

Students also viewed these Databases questions

Question

(b) At what optimal point should the process be operated?

Answered: 1 week ago