Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialEdward Cheadle
3,247 PointsThe quiz question about creating a time delta for 5 min ago in the Dates and Time in Python seems to not work
now = datetime.datetime.now() now datetime.datetime(2017, 6, 2, 21, 33, 18, 871346) then = now + datetime.timedelta(minutes=-5) then datetime.datetime(2017, 6, 2, 21, 28, 18, 871346)
The Correct Answer to the is: datetime.timedelta(minutes=-5) I cannot get the quiz to take the right answer. Why?
1 Answer
Edward Cheadle
3,247 PointsNever mind, you have to put a space between the equal sign and the -5. So much for no space between items in a function.