What will be the output of the following Python code?
my_tuple = (1, 2, 3, 4) my_tuple.append( (5, 6, 7) ) print len(my_tuple)
Tuples are immutable and don’t have an append method. An exception is thrown in this case.
Correct Answer:
Error
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Correct Answer:
Error
need an explanation for this answer? contact us directly to get an explanation for this answer