Okay so I have two functions, one that checks how many times a character appears in a string and another that is supposed to check if the two strings the user inputs are anagrams:
def function_one(s, ch):
count = 0
for c in s:
if c == ch:
count = count + 1
return count
def function_two(s, t):
while len(s) == len(t):
y = function_one(s, t)
if y == 0:
return True
else:
return False
Right now function_two will return True if the two strings are anagrams, but it will also return True if they are anagrams but have different letters capitalized, and will return nothing if they aren't anagrams at all. What do I do?