Home / Questions / Python-এ Mutable এবং Immutable Data Type-এর গুরুত্ব ব্যাখ্যা করো।
Explanatory Question

Python-এ Mutable এবং Immutable Data Type-এর গুরুত্ব ব্যাখ্যা করো।

👁 0 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Python-এ mutable এবং immutable concept memory management এবং data security-এর জন্য গুরুত্বপূর্ণ।

----------------------------------------------------

Mutable Data Type:

  • Value change করা যায়
  • Example: List, Dictionary
numbers = [1, 2]
numbers[0] = 10
----------------------------------------------------

Immutable Data Type:

  • Value change করা যায় না
  • Example: String, Tuple
name = "Python"
----------------------------------------------------

Importance:

  • Memory optimization
  • Data protection
  • Efficient programming
  • Error reduction
----------------------------------------------------

Conclusion:

Mutable এবং immutable data type বুঝলে efficient এবং secure program তৈরি করা সহজ হয়।