sequence in python

Solutions on MaxInterview for sequence in python by the best coders in the world

showing results for - "sequence in python"
Melodie
18 Feb 2018
1range(5)       sequence 0, 1, 2, 3, 4
2range(2,5)     sequence 2, 3, 4
3range(2,10,2)  sequence 2, 4, 6, 8
4range(6,1,-1)  sequence 6, 5, 4, 3, 2
5
Naim
03 Mar 2018
1# from = 0, to = 10, step/by = 2
2even_list = list(range(0,10,2))
3print(even_list)
4