subject

Please help me! will mark brainliest! Hi! i need help identifying an error in the following code:

Please tell me what i did wrong!!!

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'

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e.g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
question
Computers and Technology, 25.06.2019 04:00
Has anyone noticed that has been giving the wrong answers and that the ads are blocking answers or is that just me?
Answers: 2
You know the right answer?
Please help me! will mark brainliest! Hi! i need help identifying an error in the following code:
Questions
Questions on the website: 13722361