subject

What is wrong with this code? This is python by the way import random
count = 1
secret = random. randint(1,100)
guess = int(input("Try to guess the secret number."))
while guess != secret:
if guess secret:
guess = int(input("Too low. Try again."))
elif guess secret:
guess = int(input("Too high. Try again."))
count = count + 1
print("Congratulations! You’ve guessed the secret number. It took you", count, "times.")

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:30, dreyes439
You are almost finished updating a web site. as part of the update, you have converted all pages from html 4.0 to html5. the project is currently on schedule. however, your project manager has been asked by the marketing team manager to justify a day of time spent validating the site's html5 pages. the marketing team manager does not have technical knowledge of the internet or the web. which is the most appropriate explanation to provide to the marketing team manager?
Answers: 1
image
Computers and Technology, 22.06.2019 12:40, Rententen3845
How do i get the most points, without any effort?
Answers: 2
image
Computers and Technology, 22.06.2019 15:00, vladutraileanu7599
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
image
Computers and Technology, 23.06.2019 06:20, Ab20600
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
You know the right answer?
What is wrong with this code? This is python by the way import random
count = 1
secret...

Questions in other subjects:

Konu
History, 21.10.2020 01:01
Konu
Biology, 21.10.2020 01:01