πŸ“Š Python
Q. What will be the output of the following code?
Code:
arr = [1,2,3,4,5,6]

  print(a[::2])
  • (A) [1,3,5]
  • (B) [2,4,6]
  • (C) [1,2]
  • (D) [5,6]
πŸ’¬ Discuss
βœ… Correct Answer: (A) [1,3,5]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
183
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
95%
Success Rate