Functions
def reverse_string(str):
st1 = s[::-1]
print(st1)
reverse_string("Hello")def reverse_string(str):
st1 = ''.join(reversed(s))
print(st1)
reverse_string("Hello")Higher-Order Functions
Last updated