Predict the output
by Sam '24
def math(num):
step1 = num + (num / 2)
step2 = step1 + 3
step3 = step2 * 3
return step3
Function Call | Return Value | |||
---|---|---|---|---|
math(2) | → | |||
math(6) | → | |||
math(10) | → | |||
math(30) | → |
Experiment with this code on Gitpod.io