+ 1
Why print number 6
import random for i in range(5): value = random.randint(1, 6) print(value)
4 Answers
+ 3
It can print any number from 1 to 6 five times randomly because as Bagon said it's not exclusive it's inclusive. Range is exclusive that's why it doesn't prints the end number.
+ 1
Range(1,6)=1,2,3,4,5 ?????????????