+ 2

How to assign random numbers to a variable in python

12th Nov 2020, 4:21 AM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar
2 ответов
+ 6
import random num = random.randint(1,10) print(num)
12th Nov 2020, 4:24 AM
Avinesh
Avinesh - avatar
+ 1
Thanks Avinesh
12th Nov 2020, 4:24 AM
LordOfThunder [Inactive]
LordOfThunder [Inactive] - avatar