can i add a number in a tuple? code example
Example 1: how to add int to tuple python
t = ('add','to','the')
t += ('tuple',) #('add','to','the','tuple')
Example 2: how to add number in tuple
a = ('2',)
b = 'z'
new = a + (b,)
t = ('add','to','the')
t += ('tuple',) #('add','to','the','tuple')
a = ('2',)
b = 'z'
new = a + (b,)