Question: cannot find comment where beacuse using phone. confuse why less a 0 Write a function called check anagram(a, b) that takes two strings as input

cannot find comment where beacuse using phone. confuse why less a 0  cannot find comment where beacuse using phone. confuse why less a
0 Write a function called check anagram(a, b) that takes two strings

Write a function called check anagram(a, b) that takes two strings as input and returns True if they are anagrams and False otherwise Two words are anagrams of one another if you can form one word by using exactly the letters in the other word. For example, "struts" and "trusts" are anagrams, but bored" and "robbed" are not A student who completes this exercise should be able to . Treat a String as a sequence of characters For example: Test Result print (check anagram("struts". 'trusts"))True print (check anagram("bored", "robbed")) False Answer (penalty regime 0.10, 20, 30, 40, 50 %) 1 -Idef calculate average(a): sum = 0.0 3 number_of a - float(len(a)) 4for i in range(len(a)): sum += float(a[1]) average = sum / number-of-a 7average - str(round(average, 2)) return average PrecheckCheck Test Expected Got x-calculate average([1]) print(type(x))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!