# Canted a tuple with a sins then and add it to the end of the existing

Content type
User Generated
Rating
Showing Page:
1/1
Canted a tuple with a sins then and add it to the end of
the existing \'s tuple.
Solution
Let say, you have an initial tuple as below:
tup = (\'a\', 2, \"hello\")
Now you have a new single element tuple as below:
n = (\'m\')
In order to add n to tup do as below:
lt = list(tup) #converting tuple into a list
nlt = list(n) # converting the new tuple into the list
lt.append(nlt) # as the new list contain a single element,
this will work
tuple(lt) # converting the updated list into a tuple

Unformatted Attachment Preview
Canted a tuple with a sins then and add it to the end of the existing \'s tuple. Solution Answer:) Let say, you have an initial tuple as below: tup = (\'a\', 2, \"hello\") Now you have a new single element tuple as below: n = (\'m\') In order to add n to tup do as below: lt = list(tup) #converting ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

### Review

Anonymous
Just what I needed…Fantastic!

Studypool
4.7
Indeed
4.5
Sitejabber
4.4