✏️ Explanatory Question

Python-এ Heterogeneous Collection কী? উদাহরণসহ ব্যাখ্যা করো।

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

Answer with Explanation

Heterogeneous collection হলো এমন collection যেখানে different data types একসাথে store করা যায়।

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

Example:

data = [10, "Python", True, 3.14]
----------------------------------------------------

Explanation:

  • 10 → Integer
  • "Python" → String
  • True → Boolean
  • 3.14 → Float
----------------------------------------------------

Advantages:

  • Flexible data storage
  • Complex information store করা যায়
  • Real-world data handling সহজ হয়
----------------------------------------------------

Conclusion:

Python heterogeneous collection support করে বলে এটি খুব powerful এবং flexible language।