+ 1

modules

import random for i in range(5): value = random.randint(1, 6) print(value) let me know this in detail........

17th Apr 2020, 9:32 AM
PRIYANKA K
PRIYANKA K - avatar
1 Resposta
+ 1
Here using randint() function of module random we are printing random function between 1 & 6 as 1 & 6 are given two parameters and it will print 5 times as that for loop runs 5 times
17th Apr 2020, 9:43 AM
Sudarshan Rai
Sudarshan Rai - avatar