Consider the following snippets of code:
Code-1:
T = (1, 2, 3)
T.add(1)
Code-2:
S = set()
S.append(1)
Code-3:
L = [ ]
L = L + [1]
Select the most appropriate statement.
Q12
24 Dec 2023
Programming in Python · Week 8
Q12.Consider the following snippets of code:
Code-1:
T = (1, 2, 3)
T.add(1)
Code-2:
S = set()
S.append(1)
Code-3:
L = [ ]
L = L + [1]
Select the most appropriate statement.