Write a python function that would reverse the given string


Topic: Write a python function that would reverse the given string

Solution

def reverse_string(str_to_be_reversed):
    return str_to_be_reversed[::-1]



List all Python Programs