+ 1

How can i have an array in python

hi i want to have an array like ((myarray[100])) in python but i cant find it anywhere

15th Jan 2017, 12:08 PM
Amir Haghani
Amir Haghani - avatar
1 Antwort
+ 3
You mean declare a pre-sized array, that you can access index 'randomnly' ( index n, even you don't have set index < n )? array = [None] * 100 print(array[42]) Otherwise, you can look at Numpy library, for more advanced structures and calculations...
15th Jan 2017, 12:23 PM
visph
visph - avatar