modules | Sololearn: Learn to code for FREE!

+1

modules

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

4/17/2020 9:32:11 AM

PRIYANKA K

1 Answer

New Answer

+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