Search for question
Question

10. Write a function that takes a string as an argument, and returns a dictionary that maps each character to its frequency in the given string. For example: freq('Star Wars') returns ('S':1, 1:1, 'a:2, Y:2, "":1,"W":1, 's':1}

Fig: 1