πŸ“Š Python
Q. What is the output of the following code?
Code:
x = [1, 2, 3, 4, 5]
print(x[-3:])
  • (A) [3,4,5]
  • (B) [2,3]
  • (C) [2,3,4]
  • (D) [1,2,3]
πŸ’¬ Discuss
βœ… Correct Answer: (A) [3,4,5]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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