- 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
3 Respuestas
+ 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!
+ 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
0
OK thanks Lisa am still new to Sololearn, yeah its the complete code on python