6 Respostas
+ 7
Wait... where is such a statement in the course?? Of course it has multidimensional arrays. Just import the numpy module ;)
But even without it, Python's lists can be treated as array-like datatype -- they can be multidimensional, too.
EDIT: It is written there, indeed[!] Perhaps needs a rephrasal...
+ 5
Lists are a bit augmented vs arrays, as they can hold multiple data types. Comes for a price though, as you can't do linear algebraic (matrix) operations on them easily/quickly/at all.
+ 3
Every programming language I know has multidimensional arrays!Python isn't an exception
+ 2
[[2,3,4],[5,6,7],[8,9],[10]] exists!
It's in Python called a 2-d list
+ 2
The only exception is it is the only language with multidimensional array not called multidimensional arrays, but 2-d lists
0
It could be a misleading cuz python has multi dimensional arrays
Here is one,
arr = [1,2,[9[3,4],7],6]
print(arr[2][1][1])
# outputs 4
The lists are primary arrays of python