Objective
Create a Python program with a function called reverse_string that receives a text and returns it in reverse order.
Instructions
- In the
mainfunction, ask the user for a text. - Implement the function
reverse_stringwith the text as a parameter. - Call the function with the text entered by the user and display the reversed text.
hello
olleh
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise