Q. What will be the output of the following Python code snippet?
Code:
for i in [1, 2, 3, 4][::-1]:
print (i)
β
Correct Answer: (A)
4 3 2 1
for i in [1, 2, 3, 4][::-1]:
print (i)
You must be Logged in to update hint/solution