Python or keyword

အကြောင်းကျည်း

If one of the statements is True, the return value is True:

x = (5 > 3 or 5 > 10)
print(x)

အကြောင်းကျည်း ပြသ

Definition and usage

The or keyword is a logical operator.

Logical operators are used to combine conditional statements.

If any of the statements return True, the return value is True, otherwise False.

ပိုမို အကြောင်းကျည်း

အကြောင်းကျည်း

if ဖော်ပြ တွင် or ကိုးကွယ်

if 5 > 3 or 5 > 10:
  print("At least one of the statements are True")
else:
  print("None of the statements are True")

အကြောင်းကျည်း ပြသ

လုပ်သီးခံ

ကိုးကွယ် and နှင့် not လူအကြောင်း အကြောင်းကျည်း

ကျွန်တော်မှ အချက်အလက် Python အက္ခရာ တုံ့ပြန် ပြီး အကြောင်းကျည်း