Computer Science

Consider the following code and find out the error:

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

Python Tuples

1 Like

Answer

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

Answered By

3 Likes


Related Questions