Advertisement
zhongnaomi

rolled dices def

Jan 26th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import random
  2. def dices_rolled(n):
  3.     dice1 = [1,2,3,4,5,6]
  4.    
  5.     for item in range(n):
  6.         print (random.choice(dice1),"&",random.choice(dice1))
  7.        
  8.  
  9. dices_rolled(int(input("how many times to roll ?")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement