ပစ္စည်းတစ်ခုနှင့် Python Tuple
အရာတစ်ခုဖြင့် Tuple ဖန်တီးပါ။
အကြောင်းအရာတစ်ခုတည်းဖြင့် tuple တစ်ခုကိုဖန်တီးရန်၊ Python သည် variable ကို tuple အဖြစ် အသိအမှတ်မပြုပါက၊ ဤအရာပြီးနောက် ကော်မာတစ်ခုထည့်ရပါမည်။
ဥပမာ
တစ်ခုသော အကြောင်းအရာ tuple၊ ကော်မာကို သတိရပါ။
thistuple = ("apple",)
print(type(thistuple))
#NOT a tuple
thistuple = ("apple")
print(type(thistuple))