Skip to content

Commit cb64f9d

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

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
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 random
56
import doctest
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()

strings/min_cost_string_conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ def assemble_transformation(ops: list[list[str]], i: int, j: int) -> list[str]:
111111

112112

113113
if __name__ == "__main__":
114-
doctest.testmod()
114+
doctest.testmod()

0 commit comments

Comments
 (0)