Answers for "how to define an array of size n in python"

-1

python initialize array

array1 = [] #an empty array
array2 = list() #another empty arrat
array3 = ["1", "2", "3"] #array initialization with value
arrat4 = [x for x in range(1,11) #list comprehension
Posted by: Guest on June-16-2020

Code answers related to "how to define an array of size n in python"

Python Answers by Framework

Browse Popular Code Answers by Language