subject

Write a program that generates a random number of 1 through 100 and asks the user to guess what the number is. If the user’s guess is higher than the random number, the program should display "Too high, try again." If the user’s guess is lower than the random number, the program should display "Too low, try again". If the user’s guesses the number, the application should congratulate the user. Hint: Below sample code can be used to generates random numbers import random in = random. randint(1, 100)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
With editing, word automatically displays a paste options button near the pasted or moved text. a. cut-and-paste b. drag-and-drop c. inline d. copy-and-carry
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Auniform resource locator (url) is a formatted string of text that web browsers, email applications, and other software programs use to identify a particular resource on the internet. true false
Answers: 2
question
Computers and Technology, 24.06.2019 04:10
Write a program that reads a set of floating-point values. ask the user to enter the values, then print • the average of the values. • the smallest of the values. • the largest of the values. • the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
You know the right answer?
Write a program that generates a random number of 1 through 100 and asks the user to guess what the...
Questions
question
Mathematics, 20.11.2020 05:20
question
Mathematics, 20.11.2020 05:20
question
Mathematics, 20.11.2020 05:20
question
Social Studies, 20.11.2020 05:20
Questions on the website: 13722359