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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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