mardi 21 novembre 2017

Adding two random numbers together [duplicate]

This question already has an answer here:

So im having trouble adding 2 randomly generated numbers together. the user has to see the two random numbers generated and then the computer has to add them together and print that out. can anyone show me what im doing wrong?

import random
import time

roll_again = "yes"

while roll_again == "yes" or roll_again == "y":
    min = 1
    max = 6
    print("Rolling the dices...")
    time.sleep(2)
    print("The values are...")
    time.sleep(2)
    dice1 = print(random.randint(min, max))
    dice2 = print(random.randint(min, max))

    usertotal = dice1 + dice2




Aucun commentaire:

Enregistrer un commentaire