Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def anagrama(s1, s2):
- return sorted(s1) == sorted(s2)
- for _ in range(int(input())):
- s1, s2 = input().split()
- print('SI' if anagrama(s1, s2) == True else 'NO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement