Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- def main():
- pass
- import re
- testpal = raw_input ("Hej, Skriv in en palindrom: ")
- def ispalindrome(palindrom):
- palindrom = re.sub("[^A-Za-z0-9]+", "", palindrom).lower()
- if: testpal = palindrom
- print "Ja, din inmatning är korrekt"
- else:
- print "Nej, det är inte en palindrom!"
- if __name__ == '__main__':
- main()
Add Comment
Please, Sign In to add comment