Skip to content

Commit 24af7d9

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in 034c8d4 according to the output from Autopep8. Details: None
1 parent 2efacbb commit 24af7d9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Brain Teaser Game/script.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
("What comes once in a minute, twice in a moment, but never in a thousand years?", "the letter 'm'"),
77
("The more you take, the more you leave behind. What am I?", "footsteps"),
88
("What has keys but can't open locks?", "a piano"),
9-
("You see a boat filled with people. It has not sunk, but when you look again you don’t see a single person on the boat. Why?", "all the people were married"),
9+
("You see a boat filled with people. It has not sunk, but when you look again you don’t see a single person on the boat. Why?",
10+
"all the people were married"),
1011
]
1112

13+
1214
def play_game():
1315
score = 0
14-
random.shuffle(brain_teasers) # Shuffle the brain teasers for a random order
16+
# Shuffle the brain teasers for a random order
17+
random.shuffle(brain_teasers)
1518

1619
print("Welcome to the Brain Teaser Game!")
1720
print("Try to answer the following brain teasers:\n")
@@ -28,5 +31,6 @@ def play_game():
2831

2932
print("Game Over! Your final score:", score)
3033

34+
3135
if __name__ == "__main__":
3236
play_game()

0 commit comments

Comments
 (0)