Write a function that takes a string, aStr, as input and returnsa dictionary of words and their counts in the given list. (Note: Ifwe want to look at words in a string not the individual characterswhat collection type would it make sense to transform it into?) What is the difference between a method and a function? What aresome similarities? Write a function that takes a dictionary of menu items and theirprice and prints out the menu in a nicely formatted way. (betterthan just printing out a tuple) Write a function that takes two iterable objects, itr1 and itr2as input. Return a list of objects in itr 1 that exist within itr2Ex. Input: itr1 = “abcdef” itr2 = (“c”,”z”,”w”,”a”,”b”) Output:[“a”,”b”,”c”] . . .
#Sales Offer!| Get upto 25% Off: