What is the output for the given python code?
a = []
a.append('1')
a.append('2')
a.pop()
a.append('3')
a.append('4')
print(a)
1
['1', '3']
2
['1']
3
['1', '3', '4']
4
['4', '3', '1']
What is the output for the given python code?
a = []
a.append('1')
a.append('2')
a.pop()
a.append('3')
a.append('4')
print(a)