subject

Hi! i need help identifying an error in the following code: Please tell me what i did wrong!!! will mark brainliest! thank import random

number = random. randint(1,10)
tried = 0
uname = input("enter your name:")
uname = uname. strip()
print(f"hello! {uname}")
print("would you like to play a game?")
print("1) yes")
print("2) no")
option = input("select your option:")
option = int(option)
if option == 1:
print("i\'m thinking of a number between 1 and 10")
print("you have to guess the number within 3 tries")
guess = input("guess the number:")
guess = int(guess)
tries+=1
if guess>number:
print("guess lower...")
if guess number:
print("guess lower...")
if guess
option = int(option)

it is saying this:
ValueError: invalid literal for int() with base 10: 'no'

please help me! will mark brainliest!

ansver
Answers: 1

Another question on Computers and Technology

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, 23.06.2019 16:00
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
question
Computers and Technology, 24.06.2019 18:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best-suited for this?
Answers: 1
You know the right answer?
Hi! i need help identifying an error in the following code: Please tell me what i did wrong!!! will...
Questions
question
Biology, 27.10.2020 03:20
question
Biology, 27.10.2020 03:20
question
Spanish, 27.10.2020 03:20
question
Mathematics, 27.10.2020 03:20
question
History, 27.10.2020 03:20
Questions on the website: 13722367