Skip to content

Instantly share code, notes, and snippets.

View TheBruschettaBrother's full-sized avatar

TheBruschettaBrother TheBruschettaBrother

View GitHub Profile
def is_palindrome(x):
#function start
if isinstance(x, str) == True:
x = x.lower()#make string lowercase
z = x[::-1] #make the verse string
if z == x:# if reverse string = inputtedd string
print("True")