I want to write a function that takes 2 strings and returns True if they are anagrams(any word that have the same letters in different order) : <p>I have tried this, i want the program to compare every letter in S1 with every letter in S2, any ideas?</p>

<pre><code>s1= "Army"
s2= "Mary"
def anagram(S1,S2):
    q=0
    w=0
    S1.lower()
    S2.lower()
    for i in S1:
        if S1[q]==S2[w]:
            print S1[q]
        else:
            q+=1
            w+=1

anagram(s1,s2)
</code></pre>
