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']

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation