You are required to complete the function reverse(x). given a string “x” as an input it is expected to return that same string but reversed.
### Example:
#### input : "again"
#### output: "niaga"
##### you can change the string value in the variable `text` but you are not allowed to change the variable names or edit any other code, except the function's body, doing so may jeopardize your evaluation
text = "this is not a reversed text"
def reverse(x):
#complete this function so that it takes string x as an input
#and returns its reverse
print("the reversed text is: "+reverse(text))
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.