From a68cc3580aec0ed0e8c6da83574bda84fb9eb77d Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 1 Nov 2020 12:25:22 +0100 Subject: [PATCH] Update guesser.py comments cleanup --- guesser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guesser.py b/guesser.py index 6acea9b..91d62f3 100644 --- a/guesser.py +++ b/guesser.py @@ -27,10 +27,10 @@ def main(): print "You have guessed the correct number! You used", attempts, "attempts." found = True # declare found as true which ends the program - elif userGuess > randomNumber: # if the user is less than the generated number + elif userGuess > randomNumber: # if the user guessed a number greater than the generated number print ("Guess lower!") attempts = attempts + 1 # add one attempt to the counter - else: + else: # if the user guessed a number that is less than the generated number print ("Guess higher!") attempts = attempts + 1 # add one attempt to the counter