Question

What does the following Python code print? l=[1,2,3,4,5] p=l[2:]
l.append(6) print(p)

A [2,3,4,5]
B [1,2,3,4,5]
C [3.4.5.6]
D [3,4,5]
E [4,5,6]
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)