def apply_fee(amount, fee_pct): fee = round(amount * fee_pct / 100, 2) return fee, round(amount + fee, 2)
Run (⌘Enter) prints output here. Check (⌘⇧Enter) runs the hidden tests. Python loads on the first run.