DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
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]
PREVIOUS
NEXT
Tagged:
#sequence
#numbers
#python
ADD COMMENT
Topic
COMMENT
Name
5+2 =
Submit