What's the problem ? How to make it work ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

What's the problem ? How to make it work ?

from random import * a=random.randint(10) print(a)

29th Oct 2020, 6:46 PM
Mugiwara boy
Mugiwara boy - avatar
1 Réponse
+ 5
In this code there are 2 issues: in line 1 and line 2 (fix): import random #to use it later a = random.randint(0,10) #random.randint function requires two arguments: min and max print(a)
29th Oct 2020, 6:53 PM
Sousou
Sousou - avatar