+ 1

Range function in Python

What is the range function in python?

4th Oct 2020, 12:48 PM
Samiul Hasnat Taseen
Samiul Hasnat Taseen - avatar
2 odpowiedzi
4th Oct 2020, 12:56 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
Samiul Hasnat Taseen range(start,stop,step). Stop is not included in result. When you see range(10) it means range from 0 to 10 with step 1 (last number is 9). Range(2,8) is 1,2,3,4,5,6,7. Range(3,10,3) is 3,6,9
4th Oct 2020, 4:25 PM
Petr