English

What will be the output of the following statement? print(“PythonProgram”[−1:2:−2]) - Computer Science (Python)

Advertisements
Advertisements

Question

What will be the output of the following statement?

print(“PythonProgram”[−1:2:−2])

Very Short Answer
Advertisements

Solution

Output: ‘mgroPnt’

shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×