✏️ Explanatory Question

Python-এ Nested Data Structure কী? উদাহরণসহ ব্যাখ্যা করো।

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

Answer with Explanation

Nested data structure হলো একটি data structure-এর ভিতরে আরেকটি data structure store করা।

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

Example:

data = [1, 2, [3, 4], 5]
----------------------------------------------------

Dictionary Example:

student = {
    "name": "Rumman",
    "marks": [80, 90, 85]
}
----------------------------------------------------

Advantages:

  • Complex data organize করা যায়
  • Real-life data represent করা যায়
  • Structured programming সহজ হয়
----------------------------------------------------

Conclusion:

Nested data structure large এবং complex data efficiently manage করতে সাহায্য করে।