#Complete the function to add 90 days to the given date and return the new date import datetime # Complete the function to add 90 days to the given date and return the new date def add90Days(someDate): date2 = someDate + datetime.timedelta(days=90) return date2 # expected output: 2018-12-30 print(add90Days(datetime.date(2018, 10, 1))) # expected output: 2015-05-12 print(add90Days(datetime.date(2015, 2, 11)))
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question