Dice rolling simulator in Python
Let’s walk through the process: You already know what you need to generate random numbers. import random (or you could be more specific and say from random import randint, because we only need randint in this program) As you’ve already said it; print(“You rolled”,random.randint(1,6)) “rolls the dice”. but it does it only once, so you need a loop to repeat it. … Read more