Generate a Python program which takes two strings as input and returns true if they are anagrams of each other.
"listen", "silent"
def is_anagram(a, b):
  return sorted(a) == sorted(b)

result = is_anagram("listen", "silent")
print(result)