Examveda

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: Option A


This Question Belongs to Python Program >> Introduction To Python

Join The Discussion

Related Questions on Introduction to Python