What will be the output of the following Python code snippet?
Posted: Wed Jul 13, 2022 7:44 pm
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
print (i)
a) 4 3 2 1
b) error
c) 1 2 3 4
d) none of the mentioned