0

Range function

What is the usage of range function in python?

30th Mar 2019, 3:52 PM
Mahdi Jafari
Mahdi Jafari - avatar
4 Respostas
+ 2
If you'd like to generate a list containing all of the integers up to 150 you could manually type them or simply do: my_list = list(range(150)) print(my_list)
30th Mar 2019, 4:54 PM
Diego
Diego - avatar
0
Diego may you bring an example?
30th Mar 2019, 4:10 PM
Mahdi Jafari
Mahdi Jafari - avatar
0
Diego tnx
30th Mar 2019, 4:55 PM
Mahdi Jafari
Mahdi Jafari - avatar