A function has two parameters with default values, and it returns from three different places. def clip(v, lo=0, hi=10): if v < lo: return lo if v > hi: return hi return v print(clip(-5), clip(15, 20), clip(7, hi=5), clip(hi=3, v=8, lo=4)) What does the program print?
Log in to join the discussion.
Loading…