Skip to content

Commit 360cc36

Browse files
committed
Shorter
1 parent bf11cfc commit 360cc36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stone_paper_scissor/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
while True:
1111
try:
1212
player_hand = int(input('Please enter a number (0-2): '))
13-
if player_hand not in range(0, 3):
13+
if player_hand not in range(3):
1414
raise ValueError
1515
else:
1616
break

0 commit comments

Comments
 (0)