Tuple
t = ('a', 1, [1,2,3]) # () and comma indicate tuple
t = ('a',) # single-element tuple requires ,!tuple([1,2,3]) # (1,2,3)t = ('a', 'b', 'c')
for item in t:
print(item)t = ('d', 'a', 'c', 'b')
for item in sorted(t):
print(item)Last updated