Skip to content

Commit 750dce4

Browse files
authored
Update number_guessing.py
1 parent 3c38cfb commit 750dce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

number_guessing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
guessed_numbers = []
77

8-
print("\nYou have 5 chances in total to guess the number from 0 to ",n)
8+
print("\nYou have 5 chances in total to guess the number from 0 to", n)
99
print()
1010

1111
ans = 'y'
@@ -22,9 +22,9 @@
2222
else:
2323
guessed_numbers.append(user_num)
2424
print("The entered number is not correct try again.")
25-
print("\n")
2625
chances -= 1
2726
print("Number of chance(s) left: ", chances)
27+
print()
2828

2929
print("The number(s) entered is/are: ", guessed_numbers)
3030

0 commit comments

Comments
 (0)