SHARE
TWEET

Untitled

a guest Feb 29th, 2020 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top