0

on declaring : range (10) is it giving random numbers in range of 10 or in order

27th Oct 2016, 4:12 PM
Arya Somanadh
Arya Somanadh - avatar
2 Answers
+ 4
If you iterate over range(10) it'll return 10 numbers starting with 0 eg: for x in range(10): print(x) >0 >1 >2 >3 >4 >5 >6 >7 >8 >9
27th Oct 2016, 5:10 PM
Adrian Ellis
Adrian Ellis - avatar
0
Ordered
28th Oct 2016, 8:36 AM
Linus Izthebest
Linus Izthebest - avatar