def calculate_discount(price): if price > 100: discount = price * 0.1 final = price - discount return final print(calculate_discount(50))