Advertisement
ancestor_tunji

#is_palindrome

Feb 6th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. #10
  2. def is_palindrome(f = ""):
  3.     if f[0:] == f[::-1] :
  4.             print("True")
  5.     else:
  6.         print("False")
  7. is_palindrome("racecar")
  8. is_palindrome("yummy")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement