I am a python newbie, learning the basics now. I tried the following def function.But it indicates an error. Can somebody tell me where I make the mistakes in the syntax.
(I wrote it with the proper indentation. but the Stakoverflow window does not indicate as I paste it)
# This will test the reverse function of the program
def rev(text) :
text = input()
return text [::-1]
print("Please Enter a word")
input()
rev(text)
input() # This is to avoid the screen closing immediately after executing the
# program