Answers for "how to fill an array with consecutive numbers"

0

how to fill an array with consecutive numbers

array = [x for x in range(0, 10)]

print(array)

#OUTPUT: [0, 1, 2, 3, 4, 5 6, 7, 8, 9]
Posted by: Guest on June-21-2020

Code answers related to "how to fill an array with consecutive numbers"

Python Answers by Framework

Browse Popular Code Answers by Language