how to reverse string in python /palindrom in py

PHOTO EMBED

Sat May 13 2023 11:52:07 GMT+0000 (Coordinated Universal Time)

Saved by @Souvikdas

s = input('enter a string: ')

def palindrome(string):
    x = ""
    for i in string:
        x = i + x
    return x

print(palindrome(s))
content_copyCOPY

https://www.google.com/search?q