# Name: ... # CSE 160 # Spring 2024 # Checkin 3 # Problem 1 ''' Write a function letter_count(str, letter) that returns the number of times letter appears in str. letter is case-sensitive. Arguments: str: an String letter: a char Returns: An integer representing the count of letter in str. Examples: letter_count("hi", 'h') returns 1 letter_count("festival", 'q') returns 0 letter_count("astronomy", 'o') returns 2 ''' # your solution code should start here # Problem 2 ''' Write a function letter_multiply(num, letter) that returns a String containing letter num many times. If num is a negative integer, return the String "invalid value for num". Arguments: num: an integer letter: a char Returns: A String made of num many repeats of letter. Examples: letter_multiply(7, 'b') returns "bbbbbbb" letter_multiply(2, '&') returns "&&" letter_multiply(0, 'a') returns "" ''' # Problem 3 ''' Write a function glitchy_message(msg) that repeats each char in msg the number of times it appears in msg originally. Make function calls to letter_count and letter_multiply above instead of coding their funcationality from scratch. Arguments: msg: an String Returns: A String made of each char in msg repeating the number of times it appears in msg. Examples: glitchy_message("letter") returns "leetttteer" glitchy_message("banana") returns "baaannaaannaaa" glitchy_message("paint") returns "paint" ''' # your solution code should start here