Python if কীভাবে
অর্থাৎ এবং ব্যবহার
if কীভাবে used to create conditional statements (if statements), and only when the condition is True, you are allowed to execute the code block.
যদি পরিস্থিতি False, then use the else keyword to execute the code, please refer to the following example.
আরও ইনস্ট্যান্স
ইনস্ট্যান্স
যদি x 9 থেকে বড়, তবে "YES" প্রিন্ট করুন, না তবে "NO" প্রিন্ট করুন:
x = 5 if x > 9: print("YES") else: print("NO")
সংশ্লিষ্ট পাতা
আমাদের Python কনডিশন শিক্ষাক্রমে আরও বিষয় জানুন যা কনডিশনাল স্টেটমেন্টস সম্পর্কে