+ 3

Whats wrong here?

# trying to get random digit at this form (x,y) import random class Dice: def roll(self): first= random.randit(1,6) second= random.randit(1,6) return first,second dice=Dice() print(dice.roll())

23rd Jun 2019, 6:42 AM
Ankit Tiwari
Ankit Tiwari - avatar
3 Answers
+ 7
It is randint not randit. It has another "n".
23rd Jun 2019, 6:53 AM
ΛM!N
ΛM!N - avatar
+ 7
randit ?
23rd Jun 2019, 9:30 AM
Ayan Fox
Ayan Fox - avatar
+ 1
ΛM!N 😁thanks
23rd Jun 2019, 11:35 AM
Ankit Tiwari
Ankit Tiwari - avatar