Title / Description
Code 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)
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code