Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def main():
- a = input("Prv string: ")
- b = input("Vtor string: ")
- sorted_a = "".join(sorted(a))
- sorted_b = "".join(sorted(b))
- if sorted_a == sorted_b:
- print("Anagram")
- else:
- print("Ne e anagram!")
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement