Answers for "can you append tuples?"

3

append to a tuple

a = ('tree', 'plant', 'bird')
b = ('ocean', 'fish', 'boat')
# a and b are both tuples

c = a + b
# c is a tuple: ('tree', 'plant', 'bird', 'ocean', 'fish', 'boat')
Posted by: Guest on June-13-2021

Code answers related to "can you append tuples?"

Python Answers by Framework

Browse Popular Code Answers by Language