πŸ“Š Python
Q. Suppose we have a = [1,2,3,4,5], which of the following statements is correct?
  • (A) print(a[:100]) #Print [1,2,3,4,5] ?
  • (B) print(a[:]) #Print [1,2,3,4] ?
  • (C) print(a[0:]) #Print [2,3,4,5] ?
  • (D) print(a[-1:]) #Print [1,2] ?
πŸ’¬ Discuss
βœ… Correct Answer: (A) print(a[:100]) #Print [1,2,3,4,5] ?

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
172
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
87%
Success Rate