Question 36 of 97
Q.What will be the output of the following statement ? print("PythonProgram"[-1:2:-2])
Odisha ChseCBSE Class XII Board 2026Subjective· 1mImportance★★★★★
37% · 36/97 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →Concept understanding — Python String Slicing and Methods
A string in Python is an immutable sequence of characters that supports indexing and slicing, where s[a:b:c] returns a substring from index a up to but not including b in steps of c, and negative indices count from the end. String methods such as upper(), lower(), strip(), replace(), find(), split(), count() and partition() return new strings or values without changing the original. These operations are used …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.