Oct-09-2018, 05:56 PM
Quick question:
How do you edit the code below so that the paramater in the sum function must be a number? So x MUST be a number.
How do you edit the code below so that the paramater in the sum function must be a number? So x MUST be a number.
global_var=5
def sum(x=5):
ret_val = global_var * x
print(ret_val)
