# Put the answer on the next line.

“number_of_guesses” >=0

# Put the answer on the next line.

print(“Shaunice”+ “, I am guessing a number between 1 and 10!”)
print("Hi, " + “Shaunice” + “! I am guessing a number between 1 and 10!”)

# 8. Create a WHIlE Loop. Give the user 5 attempts to guess the number. If the number is too low print Your guess is too low. If the number is too high print Your guess is too high. Create a break if the user answers it correctly.

“python”
while “number_of_guesses” < 5:
guess = int(input("Guess a number: "))
number_of_guesses = “number_of_guesses” + 6
if guess < numbers: + 2
print(“Your guess is too low.”)
“python”
elif guess > numbers + 7:
print(“Your guess is too high.”)
else
print(“Congratulations! You guessed the number correctly!”)
break

# 9. if/else Statements - Verifying if the user has guessed the number or not… If they did…then print a message for them along with the number of tries. If the player couldnt guess the number at the end…print the number along with a message.

“python”
if “number_of_guesses” == 3:
“python”
print(“Sorry, you couldn’t guess the number. It was”, 2)
else:
print(“Congratulations, you guessed the number”, numbers, “correctly in”, “number_of_guesses”, ()“4 tries!”())()

Please format your code so we can read it easily.
See About the Python Help category that describes how to do this.

1 Like

The very last line has to many parens, clean them up