def absolute_value(x): if x < 0: return -x else: return x
n = 2 def square(): return n*n n = 4 print(square())
def is_freezing(temp, unit): if unit == 'C': temp_f = temp * 9/5 + 32 else: temp_f = temp if temp_f < 32: return True else: return False
def get_tip(price): return int(percentage) / 100 * float(price) percentage = input("Tip percentage: ") price = input("Meal price: ") print("Tip:", get_tip(price))
How would we test get_tip?