Lesson 10 of 34

and, or, not: Conditions জোড়া

8 min 25 XP

and: দুই দিকই True হলে তবেই True। or: অন্তত এক দিক True হলে True। not: True-কে False এবং False-কে True করে।

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

একটি বাস্তব উদাহরণ: চাকরির যোগ্য হতে degree এবং অন্তত 60% marks দুটোই লাগবে।

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

Range যাচাইয়ের জন্য Python-এ একটি shortcut আছে: 18 <= age <= 60

Challenge

+25 XP

input() দিয়ে একটি সাল পড়ুন। Leap year হলে Yes, না হলে No print করুন। নিয়ম: 4 দিয়ে বিভাজ্য কিন্তু 100 দিয়ে নয়, অথবা 400 দিয়ে বিভাজ্য।

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.