Guest User

Untitled

a guest
Apr 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. def main():
  3. pass
  4. import re
  5. testpal = raw_input ("Hej, Skriv in en palindrom: ")
  6. def ispalindrome(palindrom):
  7. palindrom = re.sub("[^A-Za-z0-9]+", "", palindrom).lower()
  8. if: testpal = palindrom
  9. print "Ja, din inmatning är korrekt"
  10. else:
  11. print "Nej, det är inte en palindrom!"
  12. if __name__ == '__main__':
  13. main()
Add Comment
Please, Sign In to add comment