πŸ“Š Python
Q. What will be the output of the following Python code snippet?
Code:
for i in [1, 2, 3, 4][::-1]:
    print (i)
  • (A) 4 3 2 1
  • (B) error
  • (C) 1 2 3 4
  • (D) none
πŸ’¬ Discuss
βœ… Correct Answer: (A) 4 3 2 1

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
273
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Neha Sharma
Publisher
πŸ“ˆ
86%
Success Rate