✏️ Explanatory Question

Boolean Data Type কী? উদাহরণসহ ব্যাখ্যা করো।

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

Answer with Explanation

Boolean data type শুধুমাত্র দুটি value store করে: True এবং False।

Example:

is_passed = True
is_failed = False
----------------------------------------------------

Uses of Boolean:

  • Condition checking
  • Decision making
  • Logical operation
----------------------------------------------------

Example Program:

x = 10
print(x > 5)

Output:

True
----------------------------------------------------

Conclusion:

Boolean data type program-এর logical decision-making-এর জন্য ব্যবহৃত হয়।