Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- slowo1 = str(input("Podaj zdanie 1: "))
- slowo2 = str(input("Podaj zdanie 2: "))
- slowa = [" ", ",", ".", "!", "@", ";", "\"", "\\", "?"]
- for i in slowa:
- slowo1 = slowo1.replace(i, "")
- slowo2 = slowo2.replace(i, "")
- if(sorted(slowo1.upper()) == sorted(slowo2.upper())):
- print("To zdanie to anagram")
- else:
- print("To zdanie to nie anagram")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement