News

Since you want to be able to simulate dice with different numbers of sides, a good name for the value to use would be ‘sides’. Python uses the statement def to name a function.
In order to store key-value pairs in Python, you can use the dictionary data structure. The dictionary functions in a similar fashion to the Python list, in that it is a collection of data.