Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #append #tuple
ADD COMMENT
Topic
Name
6+9 =