Skip to content

Commit 2283b38

Browse files
committed
Correct Spelling of Lose
Use of correct word lose. https://www.thefreedictionary.com/lose Signed-off-by: Akshay Gaikwad <[email protected]>
1 parent d4ab657 commit 2283b38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/looping.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,21 +445,21 @@ We will see more example of *break* and *continue* later in the book.
445445
Game of sticks
446446
==============
447447

448-
This is a very simple game of sticks. There are 21 sticks, first the user picks number of sticks between 1-4, then the computer picks sticks(1-4). Who ever will pick the last stick will loose. Can you find out the case when the user will win ?
448+
This is a very simple game of sticks. There are 21 sticks, first the user picks number of sticks between 1-4, then the computer picks sticks(1-4). Who ever will pick the last stick will lose. Can you find out the case when the user will win ?
449449

450450
::
451451

452452
#!/usr/bin/env python3
453453
sticks = 21
454454

455455
print("There are 21 sticks, you can take 1-4 number of sticks at a time.")
456-
print("Whoever will take the last stick will loose")
456+
print("Whoever will take the last stick will lose")
457457

458458
while True:
459459
print("Sticks left: " , sticks)
460460
sticks_taken = int(input("Take sticks(1-4):"))
461461
if sticks == 1:
462-
print("You took the last stick, you loose")
462+
print("You took the last stick, you lose")
463463
break
464464
if sticks_taken >= 5 or sticks_taken <= 0:
465465
print("Wrong choice")

0 commit comments

Comments
 (0)