အဘိဓာန်တွင် Key ရှိမရှိ Python စစ်ဆေးပါ။
Dictionary တွင် Key ရှိမရှိ စစ်ဆေးပါ။
အဘိဓာန်တွင် သတ်မှတ်ထားသောသော့ရှိမရှိ ဆုံးဖြတ်ရန် in
သော့ချက်စကားလုံးကို အသုံးပြုပါ-
ဥပမာ
အဘိဓာန်တွင် "မော်ဒယ်" ရှိမရှိ စစ်ဆေးပါ-
thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
if "model" in thisdict:
print("Yes, 'model' is
one of the keys in the thisdict dictionary")