Basic Python functions. beginner : i've just started a course at University which uses python. Now, I've programmed before but I'm finding this language extremely difficult to grasp. In my assignment I my first task is to make a function that tests whether two words are anagrams of each other.

This is all I have so far : 

    def anagrams(str1, str2):
    str1("String 1 : ")
    str2("String 2 : ")
    
    s1 = sorted(str1)
    s2 = sorted(str2)
    
    if s1 == s2:
        True("This is an anagram")
    
    
    
    
    anagrams(str1 = "Cat", str2 = "Tac")


I keep getting an error " 'str' object is not callable"

Please help me