practicepython.in
python exercises
171 exercises

Daily #27 · 25 October 2026

Every other letter, backwards Medium

What does this print?

print("python"[::-2])
  1. Anhy
  2. Bpto
  3. Cotp
  4. Dnohtyp
Show the answer

A: nhy

Why: A negative step starts at the end: n, then skips o, takes h, skips t, takes y. Slices never raise, whatever the numbers.

Play today’s puzzle →