@AnouS/

WhitesmokeTwinExecutablesSorting

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
def are_anagrams(word1, word2):
  
  
 word1_sorted=sorted (word1)
 word2_sorted=sorted (word2)


 return word1_sorted==word2_sorted
 
print("anagram test")

two_words=input("Enter two comma seperated words : ")
word1,word2= two_words.split()