Write a Function that Takes a String as a Parameter and Returns the String in Reverse || Type 4 || Functions || Python

 
In this we are going to see a basic example of Function that Takes a String as a Parameter and Returns the String in Reverse - Type 4 of Functions in Python Programming Language.

def reverse(str):
    return str[::-1]


x = reverse("Help For Coders")
print(x)

# Coded By DHIRAJ SHELKE

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post