Codington
0 of 6 problems solved • 0%

Exercise prompt

Predict the Default Fee

A delivery function has a default fee. Compare a call that supplies the fee with a call that leaves it out.

Predict the output

Trace the two calls independently, then choose their output.

def total(price, fee=3): return price + fee print(total(5, fee=1), total(5))
What will this code print?