Which of the following statement(s) would give an error during execution of the following code?
tup = (10, 20, 30, 40, 50)
print(len(tup)) #Statement 1
print(tuple(tup)) #Statement 2
print(tup.count(20)) #Statement 3
print(tup.append(60)) #Statement 4
Options:
A) Statement 1
B) Statement 2
C) Statement 3
D) Statement 4
Answer:
Answer by student
D) Statement 4
Detailed answer by teachoo
The rest of the post is locked. Join Teachoo Black to see the full post.