What will be the output of following code:

list = [10, 20, 30, 40]

print(list[ :: - 2])

1
[10, 20, 30]
2
[30, 10]
3
[40, 20]
4
[40, 10]

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation