Reverse a String

Write a function to reverse a string.

Input: hello

Output: olleh

🐍 Python Editor

Loading...
Console Output
Click ▶ Run Python
👉 full-stack-web-development