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 08:00
Aplan to budget time for studying and activities is referred to as a study routine. study habits. study skills. a study schedule.
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Install and use wireshark program ( send back screen shots and other vital information) case project 3-2: decode a tcp segment in a wireshark capture in this chapter, you walked through tcp segment to interpret the data included in its header. in this project, you use wireshark to capture your own http messafes, examine the tcp headers, and practice interpreting the data you'll find there. 1. open wireshark and snap the window to one side of your screen. open a browser and snap that window to the other side of your screen so you can see both windows.
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
File account.java (see previous exercise) contains a definition for a simple bank account class with methods to withdraw, deposit, get the balance and account number, and return a string representation. note that the constructor for this class creates a random account number. save this class to your directory and study it to see how it works. then write the following additional code: 1. suppose the bank wants to keep track of how many accounts exist. a. declare a private static integer variable numaccounts to hold this value. like all instance and static variables, it will be initialized (to 0, since it’s an int) automatically. b. add code to the constructor to increment this variable every time an account is created. c. add a static method getnumaccounts that returns the total number of accounts. think about why this method should be static - its information is not related to any particular account. d. file testaccounts1.java contains a simple program that creates the specified number of bank accounts then uses the getnumaccounts method to find how many accounts were created. save it to your directory, then use it to test your modified account class.
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
To fill (copy) a cell across or down, point to the of the cell and drag. top left corner top right corner bottom left corner bottom right corner
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, 06.05.2020 20:14
question
Mathematics, 06.05.2020 20:14
Questions on the website: 13722367