Skip to content

Commit d0477d0

Browse files
authored
Update dice_rolling.py
Bug Fixes
1 parent 0654b51 commit d0477d0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dice_rolling.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,23 @@ def double_dice():
1919

2020
num1, num2 = double_dice()
2121

22-
sum_faces = n1 + n2
22+
sum_faces = num1 + num2
2323

2424
print("\t\t\tMENU")
2525
print("\n1. One Die\n2. Two Dice\n")
2626

2727
ans = 'y'
2828
while ans.lower() == 'y':
29-
option = int(input("Enter your choice"))
29+
option = int(input("Enter your choice: "))
3030

3131
if option == 1:
3232
print("The value of the face is: ",single_die())
3333

3434
elif option == 2:
3535
print("The value of the first face is: ",num1, "\nand the value of the second face is: ",num2)
36+
print()
3637
print("The sum of the faces is: ",sum_faces)
37-
38+
3839
ans = input("Do you wish to continue?(Y/n): ")
40+
print("\n")
41+

0 commit comments

Comments
 (0)