tuple add element code example
Example 1: how to add number in tuple
a = ('2',)
b = 'z'
new = a + (b,)
Example 2: tuple add
a = (1, 2, 3)
b = a + (4, 5, 6) # (1, 2, 3, 4, 5, 6)
c = b[1:] # (2, 3, 4, 5, 6)
a = ('2',)
b = 'z'
new = a + (b,)
a = (1, 2, 3)
b = a + (4, 5, 6) # (1, 2, 3, 4, 5, 6)
c = b[1:] # (2, 3, 4, 5, 6)