How To Make An Roll The Dice - Python - Learn Code

Publié le: 01 juin 2019
sur la chaîne: Dring Desktops
830
7

Today I Show You How To Make An Roll The Dice.

Script Used In Video: 1 Number
import random
min = 1
max = 6

roll_again = "yes"

while roll_again == "yes" or roll_again == "y":
print "Rolling the dices..."
print "The value are...."
print random.randint(min, max)

roll_again = raw_input("Roll the dices again?")

———————————————————————

Script Used In Video: 2 Numbers
import random
min = 1
max = 6

roll_again = "yes"

while roll_again == "yes" or roll_again == "y":
print "Rolling the dices..."
print "The value are...."
print random.randint(min, max)
print random.randint(min, max)

roll_again = raw_input("Roll the dices again?")


Sur cette page du site, vous pouvez voir la vidéo en ligne How To Make An Roll The Dice - Python - Learn Code durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Dring Desktops 01 juin 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 830 fois et il a aimé 7 téléspectateurs. Bon visionnage!