0

not sure why function keeps returning the else option

Am I handling args wrong, can a function not accept multiple input types ? https://code.sololearn.com/caWF6466aelR

22nd Sep 2021, 7:30 PM
MaxBanter
MaxBanter - avatar
2 Answers
+ 3
MaxBanter Order of passing arguments is wrong, there should be calc(inp1, inp2, op)) And also you didn't print returned value
22nd Sep 2021, 7:41 PM
A͢J
A͢J - avatar
+ 4
In the last line, you give the arguments in the wrong order to the function
22nd Sep 2021, 7:38 PM
Lisa
Lisa - avatar