- 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 Answers
+ 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