What will be the output of the following Python code snippet?
for i in [1, 2, 3, 4][::-1]: print (i)
a) 4 3 2 1 b) error c) 1 2 3 4 d) none of the mentioned
Answer: a Explanation: [::-1] reverses the list.