diff --git a/docs/looping.rst b/docs/looping.rst index 6be051f..8962241 100644 --- a/docs/looping.rst +++ b/docs/looping.rst @@ -458,7 +458,7 @@ This is a very simple game of sticks. There are 21 sticks, first the user picks while True: print("Sticks left: " , sticks) sticks_taken = int(input("Take sticks(1-4):")) - if sticks == 1: + if sticks <= 1: print("You took the last stick, you lose") break if sticks_taken >= 5 or sticks_taken <= 0: