Created
April 4, 2021 09:53
-
-
Save Abhayparashar31/10e35e52307e927cbf6100dd8d2bc85e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def check_anagram(first_word, second_word): | |
| return sorted(first_word) == sorted(second_word) | |
| print(check_anagram("silent", "listen")) # True | |
| print(check_anagram("ginger", "danger")) # False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment