✏️ Explanatory Question

Mutable এবং Immutable Data Type কী? উদাহরণসহ ব্যাখ্যা করো।

👁 0 Views
📘 Detailed Answer
🟢 Easy
0
Total Views
10
Related Qs
0%
Progress
💡

Answer with Explanation

Mutable Data Type:

যে data type-এর value change করা যায় তাকে mutable data type বলে।

Example:

numbers = [1, 2, 3]
numbers[0] = 10
  • List
  • Dictionary
  • Set
----------------------------------------------------

Immutable Data Type:

যে data type-এর value change করা যায় না তাকে immutable data type বলে।

Example:

name = "Python"
  • String
  • Tuple
  • Integer
----------------------------------------------------

Difference Table:

Mutable Immutable
Value change করা যায় Value change করা যায় না
List, Dictionary String, Tuple
----------------------------------------------------

Conclusion:

Mutable এবং immutable concept memory management এবং data security বুঝতে সাহায্য করে।