anyone intrested in web development job ?
A major difference between python tuple and list in python is that tuples cannot be modified (immutable) whereas lists are modifiable (mutable). Lists can use methods like append(), insert(), remove(), sort(), clear(), pop(), reverse(), index() and count() but tuples can only use the methods index()Read more
A major difference between python tuple and list in python is that tuples cannot be modified (immutable) whereas lists are modifiable (mutable).
Lists can use methods like append(), insert(), remove(), sort(), clear(), pop(), reverse(), index() and count() but tuples can only use the methods index() and count().
Prachi
List is an ordered form of data structure whereas dictionary is an unordered form of data structure. So when you add an item in a list it is added in a particular sequence but in dictionary the item is added randomly at any position. Dictionary stores items in key-value pairs and lists store it at iRead more
List is an ordered form of data structure whereas dictionary is an unordered form of data structure. So when you add an item in a list it is added in a particular sequence but in dictionary the item is added randomly at any position.
See lessDictionary stores items in key-value pairs and lists store it at indices.
To access items in list, you refer to indices but in dictionaries you refer to key for accessing the stored value against it.