Question

Consider the following Python code: s = "PythonProgramming" part1 = s[2:6] # Corrected line part2 = s[-5:] print(part1 + part2) What will be the output of this code?

A thonmming
B thonramming
C thonPmming
D thonogramming
E thonogram
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)