Answers for "create a sequence of numbers in python"

1

create a sequence of numbers in python

list(range(11, 17))
#Creates the following list
[11, 12, 13, 14, 15, 16]
Posted by: Guest on August-03-2021
0

sequence with numbers in python

step = 2
vec = [1,2,3,4,5]
vec2 = [i/step for i in range(len(vec))]

# vec2 = [0.5, 1, 1.5, 2, 2.5]
Posted by: Guest on December-01-2020

Code answers related to "create a sequence of numbers in python"

Python Answers by Framework

Browse Popular Code Answers by Language