0
function + default argument
i am wondering why i keep getting a wrong sum when i call "shuttle ()" in the code below https://code.sololearn.com/cNYePLBqU2j8/?ref=app
2 Respostas
+ 1
Well, the sum is correct.
When you call your function without arguments, it takes default (3+4).
so x = (6**2)*(3+4) = 252
0
thanks. that made clearer. My initial thought was that it was gonna return only the sum in the bracket i.e. 3+4