<prompt> Create a function to check whether two strings are anagrams.  <response>: Here is one possible implementation in Python:pythondef is_anagrams1, s2: Quick check to see if the strings are the same length if lens1 ! lens2: return False Create dictionaries to hold the count of each character in each string char_count1 char_count2 Populate the dictionaries with the counts for i in rangelens1: char_count1s1i char_count1.gets1i, 0 1 char_count2s2i char_count2.gets2i, 0 1 Compare the dictionaries to see if theyre the same return char_count1 char_count2 