subject

I cant get this for the life of me, I dont understand what im doing wrong, help? def main():

numGuesses = 0
userGuess = 15
secretNum = 5

name = input("Hello! What is your name?")

userGuess = print ("Guess a number between 1 and 20:")

numGuesses = numGuesses + 1

if (userGuess < secretNum):
print("You guessed " + str(userGuess) + ". Too low.")

if (userGuess > secretNum):
print("You guessed " + str(userGuess) + ". Too high.")

if (userGuess = secretNum):
print9"Congrats! you are correct.")
main()

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 23:30, jamalchris9353
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
image
Computers and Technology, 25.06.2019 00:00, bestdiva2
What function key is used to enable the spelling and grammar function
Answers: 1
image
Computers and Technology, 25.06.2019 08:10, yangyang718
Rom also called main memory or system memoryis used to stor the essential parts of the operating while the computer is running / true or false
Answers: 2
image
Computers and Technology, 25.06.2019 20:00, dh29229
Flappy golf 2: write down my code to get 10 free eggs! my code is: 2sn8dd if you do i’ll give brainliest to the first person. directions: go to the recruit tab on flappy golf 2 and type in my code. i’ll do the same to you if you give me your code: )
Answers: 1
You know the right answer?
I cant get this for the life of me, I dont understand what im doing wrong, help? def main():
<...

Questions in other subjects:

Konu
History, 01.12.2020 22:40
Konu
English, 01.12.2020 22:40
Konu
Arts, 01.12.2020 22:40
Konu
Mathematics, 01.12.2020 22:40
Konu
Biology, 01.12.2020 22:40