List down mutable data types in python. Demonstrate any five
methods of list with example and explain difference between list,
tuple and dictionary in python.
Answers
Answered by
1
Answer:
- Mutable and Immutable Data Types in Python
- Mutable and Immutable Data Types in PythonSome of the mutable data types in Python are list, dictionary, set and user-defined classes.
- Mutable and Immutable Data Types in PythonSome of the mutable data types in Python are list, dictionary, set and user-defined classes.On the other hand, some of the immutable data types are int, float, decimal, bool, string, tuple, and range.
- Mutable and Immutable Data Types in PythonSome of the mutable data types in Python are list, dictionary, set and user-defined classes.On the other hand, some of the immutable data types are int, float, decimal, bool, string, tuple, and range.In Python, lists and tuples are organized and accessed based on position. Dictionaries in Python are organized and accessed using keys and values. ... Dictionaries are defined in Python with curly braces { } . Commas separate the key-value pairs that make up the dictionary..
Similar questions