snowy
0
Q:

tuple add

some_tuple = ('dog', 'cat')
some_data = 'cow' # some data we want append to tuple

some_tuple += (some_data,)
1
a = (1, 2, 3)
b = a + (4, 5, 6)  # (1, 2, 3, 4, 5, 6)
c = b[1:]  # (2, 3, 4, 5, 6)
2

New to Communities?

Join the community