Python ကို စမ်းသုံးကြည့်ပါ
ရပြီလား
else
အမှားအယွင်းများ မပေါ်ပေါက်ပါက လုပ်ဆောင်ရန် ကုဒ်ပိတ်ဆို့ခြင်းအား သတ်မှတ်ရန် သော့ချက်စကားလုံးကို အသုံးပြုနိုင်သည် ။
ဥပမာ
ဤဥပမာတွင်၊ try
ပိတ်ဆို့ခြင်းသည် မည်သည့်အမှားအယွင်းကိုမျှ မထုတ်ပေးပါ။
try:
print("Hello")
except:
print("Something went
wrong")
else:
print("Nothing went wrong")