state gov UP Police Programmer Grade 2 Mock Test Series Programming and Data Structure Programming in C Array
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]
What will be the output of following code:
list = [10, 20, 30, 40]
print(list[ :: - 2])