Q:

What will be the output of the following Python code?

0

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.


  1. 1
  2. 2
  3. Error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

Error

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now