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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
Which action describes an aspect of technological design?
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 22.06.2019 18:10
How can i delete permalinks from a word press site?
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
How is the number 110 written when expanded out to place values in the base 2 (binary) number system? options: 2 x 4 + 3 x 2 + 4 x 1 1 x 2 + 1 x 2 + 0 x 2 1 x 100 + 1 x 10 + 0 x 1 1 x 4 + 1 x 2 + 0 x 1
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
question
History, 25.02.2021 07:50
question
Mathematics, 25.02.2021 07:50
question
Mathematics, 25.02.2021 07:50
question
Mathematics, 25.02.2021 07:50
question
Mathematics, 25.02.2021 07:50