Answers for "how to append number in tuple"

2

how to append number in tuple

a = (3,)
b = list(a)
b.append("Work!")
a = tuple(b)
print(a)
Posted by: Guest on July-25-2021
0

how to add number in tuple

a = ('2',)
b = 'z'
new = a + (b,)
Posted by: Guest on August-04-2020

Browse Popular Code Answers by Language