Python Nested If
အကယ်၍ Inside If
if
ကြေငြာချက်များအတွင်းတွင်
ဖော်ပြချက် များ ရှိနိုင်သည် if
၊ ၎င်းကို nested
if
statements ဟုခေါ်သည်။
ဥပမာ
x = 41
if x > 10:
print("Above ten,")
if x > 20:
print("and
also above 20!")
else:
print("but not
above 20.")