Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
how to fill an array with consecutive numbers
ada
Programming language:
Python
2021-08-03 06:05:27
0
Q:
how to fill an array with consecutive numbers
Amin
Code:
Python
2021-06-10 07:24:53
array = [x for x in range(0, 10)] print(array) #OUTPUT: [0, 1, 2, 3, 4, 5 6, 7, 8, 9]
1
Tags
number
array
con
how
Related
python algorithm that takes a list of numbers and calculates the sum of the square of each number
python find in largest 3 numbers in an array
how to fill an array with consecutive numbers python
New to Communities?
Join the community