Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions guesser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down