Write a Python program to reverse a given string. with explanation
Ask by ICSM Computer
Updated 02 Sep 2025
Explanation:
Function definition:
text[start:end:step]is the syntax.[::-1]means:Input from the user:
input()takes input as a string from the user.Call the function:
Print the result:
Output :