Pls how can I rectify this code I keep getting syntax error:invalid syntax on a date I want to print. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Pls how can I rectify this code I keep getting syntax error:invalid syntax on a date I want to print.

deltadate={}.format('2018,07,09)

9th Jul 2018, 8:46 AM
kehinde Onoba
3 Answers
+ 3
In which language is this code?
9th Jul 2018, 8:47 AM
Mattéo
+ 3
Try this: deltadate = format("2018, 07, 09")
9th Jul 2018, 8:56 AM
Mattéo
+ 1
The code is in python
9th Jul 2018, 8:54 AM
kehinde Onoba