Write a function reverseString(STR) in Python, that takes a string, STR as an argument and returns the string with its characters in reverse order. If the string is empty, return an empty string.
For example, Consider the following string
STR = "Hello World"
The output should be:
dlroW olleH
Answer:
Answer by student
Detailed answer by teachoo
The rest of the post is locked. Join Teachoo Black to see the full post.