Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. def anagramma(string1, string2):
  2. string1 = string1.split()
  3. string1 = ''.join(string1)
  4. string2 = string2.split()
  5. string2 = ''.join(string2)
  6. if string1 == string2[-1::-1]:
  7. return 'Bingo!'
  8. else:
  9. return 'Hmmm...'
  10.  
  11. string1, string2 = input(), input()
  12.  
  13. print(anagramma(string1, string2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement