Topic List | Page List: 1 |
---|---|
Topic | ITT: Learning Python |
SomeLikeItHoth 07/14/21 11:58:07 PM #80: | SpiritSephiroth posted... Here's how I ran it. import random roll_dice = True while roll_dice: print("Rolling the dice...") print("The values are...") print(random.randint(1, 6)) roll_again = input("Roll the dice again? (yes/no) ") if roll_again == "yes": roll_dice = True else: print("Goodbye!") roll_dice = False --- FAM FOREVER. ... Copied to Clipboard! |
Topic List | Page List: 1 |