What will be the output?>>>my_tuple = (1, 2, 3, - ProProfs Discuss
Advertisement

What will be the output?>>>my_tuple = (1, 2, 3, 4)>>>my_tuple.append( (5, 6, 7) )>>>print len(my_tuple)

Asked by Iihtmarathahalli, Last updated: Apr 13, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

iihtmarathahalli

iihtmarathahalli

iihtmarathahalli
Iihtmarathahalli

Answered Dec 01, 2018

Error

Tuples are immutable and dont have an append method. An exception is thrown in this case.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.