+ 1
Function Argument
Can anyone solve this progam what error occurs here.. def print_sum_twice(x, y): print(x + y) print(x + y) e=input("enter 1: ") print (e) r=input("enter 2: ") print (r) print_sum_twice(float(e), float(r))
2 Respuestas
+ 3
Did you want to sum up the values twice?
Because you're not saying that in your function, you just print out the value of the same x + the same y two times.
+ 1
I just tested it. It worked fine.