append tuple in python code example
Example 1: how to add number in tuple
a = ('2',)
b = 'z'
new = a + (b,)
Example 2: tuple push
a = ('Product', '500.00', '1200.00')
a = list(a)
a.insert(3, 'foobar')
a = tuple(a)
print a
>> ('Product', '500.00', '1200.00', 'foobar')