Skip to content

Commit 3c38cfb

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

number_guessing.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@
2323
guessed_numbers.append(user_num)
2424
print("The entered number is not correct try again.")
2525
print("\n")
26-
chances-=1
26+
chances -= 1
27+
print("Number of chance(s) left: ", chances)
2728

28-
print("The number(s) entered is/are: ",guessed_numbers)
29+
print("The number(s) entered is/are: ", guessed_numbers)
30+
31+
print("\nThe number to be guessed was: ", num)
2932

3033
ans = input("Do you wish to continue?(Y/n): ")
34+
print("\n")

0 commit comments

Comments
 (0)