# 1. Modify the following function to_smash, print candy instead of candies when total_candies is 1, so to_smash(1) should output "Splitting 1 candy". Try to fix the function without increasing the number of lines of code. def to_smash(total_candies): """Return the number of leftover candies that must be smashed after distributing the given number of candies evenly between 3 friends. >>> to_smash(91) "Splitting 91 candies" """ print("Splitting", total_candies, "candies") return total_candies % 3 to_smash(91) # 2. The function `is_negative` below is implemented correctly - it returns True if the given number is negative and False otherwise. However, it's more verbose than it needs to be. We can actually reduce the number of lines of code in this function by *75%* while keeping the same behaviour. See if you can come up with an equivalent body that uses just **one line** of code, and put it in the function `concise_is_negative`. (HINT: you don't even need Python's ternary syntax) def is_negative(number): if number < 0: return True else: return False def concise_is_negative(number): pass # Your code goes here (try to keep it to one line!) # 3. You want to implent a function to convert grades to characters. def grade_to_char(grades): """ Return A if grade is larger than 90, B if grade is larger than 80 but less equal to 90, C if larger than 70 but less equal to 80, D if larger than 60 but less equal to 70, otherwise return F. Try to make your code as short as possible """ # your code here