In python, is there no difference between lists and arrays?
Arrays and lists are essentially the same thing. Python just calls it a list as opposed to other languages call it an array.
Fortunately, I have done enough Python tutorial prior and elsewhere that I can follow just fine. I am traveling this basic intro. path to fill in any gaps. However, at this point I see the true, raw novice – who has just installed Python for the first time and chosen an editor / IDE – is in sudden confrontation with methods, if-else conditionals, separately written modules launched from command line, lists, and dictionaries. These provide flavour and meaning to the basic data types, but may be a bit of a jolt for some / many trying to learn from scratch.
@Jonathan: Arrays and lists are not the same in python, even when they have lot of similarities. The most important difference is list can be used to store heterogeneous data types, but array can be used to store data of a single type.
@birajkshau Would you be more kind by telling us some instances in the differences of list and array?
Become a Member to join the conversation.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4