(05-01-2022, 09:27 AM)Mr.Kurd Wrote: The thing is how can we differentiatr between them?
Sets, Tuples, Lists and Arrays?
Python has no built-in arrays.
Sets are unordered, unchangeable and unindexed. and represented by curly brackets and do not allow duplicate.
Lists are used instead of arrays in python and represented by square brackets.
Tuple are are ordered and unchangeable and represented by parenthesis
Dictionaries are written with curly brackets, and store data values in keys : value pairs, and do not allow duplicates.
Hope this helps.
Love me like you do