CBSE Class 11 Computer Science Question 60 of 88

Tuples and Dictionary — Question 25

Back to all questions
25
Question

Question 14(b)

Consider the following code and find out the error:

tup1 = ('a', 'b', 'c')  
tup1 = tup1 + d
Answer

The code will result in an Error because the variable d is not defined before it is used in the expression tup1 + d.