Write a function to reverse a string


Topic: Write a function to reverse a string

Solution

def revStr(inp):
  inp = inp[::-1]
  return inp



List all Python Programs