Skip to content

Commit e50ff0a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9bfb9ab commit e50ff0a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

other/snake_water_gun.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
A simple implementation of the Snake, Water, Gun game.
33
"""
4+
45
import doctest
56
import random
67

@@ -47,7 +48,9 @@ def main():
4748
"""
4849
print("--- Snake, Water, Gun Game ---")
4950
player_input = (
50-
input("Enter your choice (s for snake, w for water, g for gun): ").lower().strip()
51+
input("Enter your choice (s for snake, w for water, g for gun): ")
52+
.lower()
53+
.strip()
5154
)
5255

5356
if player_input not in ["s", "w", "g"]:
@@ -66,4 +69,4 @@ def main():
6669

6770
if __name__ == "__main__":
6871
doctest.testmod() # Run the doctests
69-
main()
72+
main()

0 commit comments

Comments
 (0)