root@coding-prodigies:~#
← All challenges

Reverse a string

Print "hello world" backwards.

🟢 EasyDifficulty

The challenge

Given the string "hello world", print it reversed.

Output

  
🧠 Need a hint? (Python)

Slicing with a step of -1 (s[::-1]) reverses a string in one line.

🚀

Like solving these?

Structured courses, hands-on exercises, and real multi-file projects are waiting -- your first project unlock is free.

Create a free account

More challenges