not sure why function keeps returning the else option | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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