#Uhh basic doubt ig

5 messages · Page 1 of 1 (latest)

urban wraith
#

Whats the difference between list, tuple and a set

wraith shoal
#

Lists are ordered, and properly indexed. You can keep duplicates, easy to access an info/data of an index ... The main thing is you can modify , reorder the list elements

#

Tuples can't be modified they are fixed constants but they also allow duplicates, proper indexing for easy to access a data/element

#

Sets are not ordered and properly indexed. You can't access elements directly. No duplicate elements. But you can modify the data

#

@urban wraith