>>>Def convert_to_seconds(days): """ (number)->number Return number of days to numberof seconds >>>convert_to_seconds(1) 864 | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
- 1

>>>Def convert_to_seconds(days): """ (number)->number Return number of days to numberof seconds >>>convert_to_seconds(1) 864

Please am getting a syntax error in line 1

9th Sep 2021, 8:43 PM
Peter
3 ответов
+ 2
Peter Is that your complete code? Please don't paste code j to the header section – rather put your code on playground and share the link. Tagthe relevant programming language!
9th Sep 2021, 8:51 PM
Lisa
Lisa - avatar
+ 2
* did you type the ">>>" or did you just copy all that from your console? * the keyword is "def" (not "def") * the docstring is in complete – the closing """ are missing * the function doesn't have any code content and therefore does not return or output anything
9th Sep 2021, 8:59 PM
Lisa
Lisa - avatar
0
OK thanks Lisa am still new to Sololearn, yeah its the complete code on python
9th Sep 2021, 8:53 PM
Peter