Почему ошибка? И как её исправить? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Почему ошибка? И как её исправить?

https://code.sololearn.com/c2SPwa8y367W/?ref=app

15th Sep 2019, 8:02 AM
Andrey
2 Answers
+ 1
Hello Andrey , The `sum` function accepts 2 parameters and both have default value. The problem here is we are calling the function and supplying the second argument value (9 for <b>) - while at the same time we are skipping the first argument (value for <a>). In short, an optional parameter cannot be skipped (a)when the next optional parameter (b) is given a value. Sorry for reply in English, slow connection makes Google Translate hangs XD
15th Sep 2019, 8:48 AM
Ipang
+ 1
Thank you very much
15th Sep 2019, 8:51 AM
Andrey