xo

Python code posted by xo
created at 22 Jun 02:00

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
times = int(input('how many times do you want to roll? '))
roll_set = {}                           #saving the set in a dict

while times > 0:
    roll = input('\nname this roll: ')  #make sure each name is unique
    m = int(input('how many dice? '))   #integers only on these three
    d = int(input('how many sides? '))
    a = int(input('plus how much? '))
    roll_set[roll] = dice_roller(m, d, a)
    times -= 1

print(roll_set)
445 Bytes in 2 ms with coderay