Skip to content

Commit 63c4945

Browse files
committed
Use black formatting
1 parent f62583d commit 63c4945

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python-break/user_input_example.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88

99
while True:
1010
if guesses_left <= 0:
11-
print(f"You ran out of guesses! The correct number was {random_number}")
11+
print(
12+
f"You ran out of guesses! The correct number was {random_number}"
13+
)
1214
break
1315
guess = input("Guess a number between 1 and 10, or enter q to quit:")
1416
if guess == "q":
1517
print("Successfully exited game.")
1618
break
17-
elif(not(guess.isnumeric())):
19+
elif not (guess.isnumeric()):
1820
print("Please enter a valid value.")
1921
elif int(guess) == random_number:
2022
print("Congratulations, you picked the correct number!")

0 commit comments

Comments
 (0)