def water_type(temp): '''Print either solid or liquid depending on the water temperature. Signature: (int) --> None''' if temp < 32: print('solid') else: print('liquid') print('The water temp is', temp) def days_in_year(year): '''Return the number of days in a given year. Signature: (int) --> int''' days = 365 if year % 4 == 0: # yes, it's a leap year days = days + 1 return days def twice_max(val1, val2): '''Return two times the larger value of val1 and val2. Signature: (int, int) --> int.''' if val1 > val2: return val1 * 2 else: return val2 * 2 def is_liquid(temp): '''Returns whether water at the given temp is in liquid form Signature: (int) --> bool''' return temp > 32 def is_between(num, lower, upper): '''Return whether num is between lower and upper. Signature is (int, int, int) --> bool.''' return num > lower and num < upper