Usually, one is able to run a method without providing an argument for the parameter "self", however, I'm unable to do that.
class Dice:
def roll(self):
x = (range(1, 7))
y = (range(1, 7))
from random import choice
x1 = choice(x)
y2 = choice(y)
output = (x1, y2)
return output
dice = Dice
dice.roll() # here it shows that parameter self is required
The Error shown is: dice.roll() # here it shows that parameter self is ^^^^^^^^^^^ TypeError: Dice.roll() missing 1 required positional argument: 'self'