Multiple choice python

my_tuple = (1, 2, 3, 4) my_tuple.append( (5, 6, 7) ) print len(my_tuple)

  1. 1

  2. 6

  3. 4

  4. 5

  5. An exception is thrown

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Tuples in Python are immutable sequences, meaning their size and contents cannot be modified after creation. Attempting to call append on a tuple results in an AttributeError, which throws an exception since tuples do not have an append method.