Question PRG-PY-0045
MediumWhat is the output of this program?
s = "Placement2026"
print(s[::-1][:4], s[-4:], s[1:9:3])
- A.
6202 2026 lct
- B.
2026 6202 len
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Python question
What is the output of this program?
s = "Placement2026"
print(s[::-1][:4], s[-4:], s[1:9:3])
6202 2026 lct
2026 6202 len
Sign up free to see the answer and a step-by-step explanation.
6202 2026 len
6202 2026 Pcm