Computers and Technology, 11.05.2021 18:40 kylediedrich1343
# Ben Rouse, Today's date is the 11th of March, 2021. This is a great way to finally be able to guess correctly because you get multiple attempts to guess my number.
def main():
# Initialize variables
numGuesses = 0
userGuess = -1
secretNum = 5
name = input("Hello! What is your name?")
# Sorry, that nummber is incorrect.
# This loop will need run until the player has guessed the secret number.
numGuesses = (input("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.")
# Fill in missing PRINT statement here.
# Print a single message telling the player:
# That he/she guessed the secret number
# What the secret number was
# How many guesses it took
main()
What am I doing wrong here?
Answers: 3
Computers and Technology, 22.06.2019 04:30, Lilabbychichi
Ryan is working on the layout of her web page. she needs to figure out where her header, navigation bar, text, and images should go. what technique can her?
Answers: 1
Computers and Technology, 24.06.2019 00:00, Amrinderkhattra
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
# Ben Rouse, Today's date is the 11th of March, 2021. This is a great way to finally be able to gues...
Biology, 04.04.2020 00:31
Mathematics, 04.04.2020 00:31
Mathematics, 04.04.2020 00:31
Mathematics, 04.04.2020 00:31
Mathematics, 04.04.2020 00:31
History, 04.04.2020 00:31