Python Tuple
Tuple
Tuple သည် အမိန့် ပေး၍ မပြောင်းလဲနိုင်သော စုစည်းမှုတစ်ခုဖြစ်သည် ။ Python တွင် tuple များကို round bracket ဖြင့်ရေးထားသည်။
ဥပမာ
Tuple တစ်ခုဖန်တီးပါ-
thistuple = ("apple", "banana", "cherry")
print(thistuple)
Tuple သည် အမိန့် ပေး၍ မပြောင်းလဲနိုင်သော စုစည်းမှုတစ်ခုဖြစ်သည် ။ Python တွင် tuple များကို round bracket ဖြင့်ရေးထားသည်။
Tuple တစ်ခုဖန်တီးပါ-
thistuple = ("apple", "banana", "cherry")
print(thistuple)