+ 2

What is the difference between Python Arrays and lists in python?

EXPLAIN WITH EXAMPLE PLS

16th Dec 2021, 7:11 PM
Arpan Saha
Arpan Saha - avatar
2 odpowiedzi
+ 3
Python does have arrays, but they require the use of the array module. Unlike a list an array in python can only have 1 type. See the documentation for more info: https://docs.python.org/3/library/array.html
16th Dec 2021, 10:13 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Python doesn't have native Array support.
16th Dec 2021, 7:14 PM
Anya
Anya - avatar