Answers for "sequence in python"

0

sequence python

range(5)       sequence 0, 1, 2, 3, 4
range(2,5)     sequence 2, 3, 4
range(2,10,2)  sequence 2, 4, 6, 8
range(6,1,-1)  sequence 6, 5, 4, 3, 2
Posted by: Guest on September-21-2021
-1

sequence in python

# from = 0, to = 10, step/by = 2
even_list = list(range(0,10,2))
print(even_list)
Posted by: Guest on May-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language