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 01:00
Search the web for two examples of digital art that you like. the examples must be from different mediums (example: one digital photo and one computer animation not two computer animations). compose an essay for each example you choose about why the piece appeals to you, and identify the medium used.
Answers: 1
question
Computers and Technology, 22.06.2019 06:00
Write a function that draws a pool ball. this function should take as parameters, the color, the number that should go on the pool ball, and the location of the center of the pool ball. the radius of the pool balls should be pool_ball_radius, and the font of the number should be pool_ball_font. the text of the pool ball font should be white. drawpoolball(color.orange, 5, 100, 100); drawpoolball(color.green, 6, 50, 200); drawpoolball(color.red, 3, 150, 350); drawpoolball(color.blue, 2, 250, 140); to center the numbers on the pool ball, you should use the getwidth() and getheight() methods. you are allowed to call these methods on your text object, such as txt.
Answers: 3
question
Computers and Technology, 22.06.2019 11:20
The kurt vonnegut commencement speech, the neiman-marcus chocolate chip cookie recipe, and the get-well emails to the dying boy are examples of select one: a. social engineering b. hoax emails c. email viruses d. worms
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
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
Mathematics, 28.09.2019 22:20
question
Mathematics, 28.09.2019 22:20
question
Social Studies, 28.09.2019 22:20