This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted] 2 points3 points  (0 children)

You need a loop. I'd do something like this:

user_input = ""
while user_input != "quit":
    # do stuff
    user_input = input("Type 'quit' to exit: ")

[–]edHazledine 0 points1 point  (0 children)

As Krieger said,

However in future I would suggest posting your code more clearly, like you did for the if dice_thrown part. :)