Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. napis = str(input("Podaj zdanie: "))
  2. napis = napis.replace(" ", "").replace(",","").replace(".","").replace(":","").upper()
  3. if(napis=="".join(reversed(napis))):
  4. print("To zdanie to palindrom")
  5. else:
  6. print("To zdanie to nie palindrom")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement