Tuple Item ရှိမရှိ Python စစ်ဆေးပါ။
Tuple Item ရှိမရှိ စစ်ဆေးပါ။
tuple တစ်ခုတွင် သတ်မှတ်ထားသော အကြောင်းအရာတစ်ခု ရှိ၊ မရှိ ဆုံးဖြတ်ရန် in
သော့ချက်စကားလုံးကို အသုံးပြုပါ-
ဥပမာ
tuple တွင် "apple" ရှိမရှိစစ်ဆေးပါ။
thistuple = ("apple", "banana", "cherry")
if "apple" in thistuple:
print("Yes, 'apple' is in the fruits tuple")