Urefu wa Tuple katika Python
Ili kupata urefu wa tuple, inapaswa
kutumia kitendo len:
tpl = ('a', 'b', 'c')
print(len(tpl)) # itatoa 3
Imepewa tuple:
tpl = ('1', 'b', '3', 'd', '5')
Tafuta urefu wake.
Imepewa tuple:
tpl = (1, 2, 3)
Onyesha idadi ya vipengele katika hii tuple.