Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Diceroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
print ("You rolled...")
count = 0
#while loop repeats roll for how many dice are set
while True:
while count < DICE:
print (random.randint(MIN, MAX))
count += 1
if count >= DICE:
break
#ask user if they want to roll again
ROLLAGAIN = input("Roll again?").lower()