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 trial

Python Dates and Times in Python (2014) Dates and Times Far Away

Please give me help

Please Help Me!

far_away.py
import datetime
def far_away(timedelta):
    datetime.datetime.timedelta.now()
    return datetime

1 Answer

Andy McDonald
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Andy McDonald
Python Development Techdegree Graduate 13,801 Points

If I recall correctly, this wants you to add a time delta to the current time. You're going to want to use the add operator (+) and datetime.datetime.now() inside your code. If you need more help let me know. Show some love and select best answer if that's all you need.

Andy McDonald
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Andy McDonald
Python Development Techdegree Graduate 13,801 Points

Hopefully, that does it but another thing kinda stood out to me that you should probably know about: your returning a variable that hasn't had anything assigned to it (datetime). If you want to assign line 3 of your code to the variable 'datetime' that would also work. But you could simplify this by simply returning the correct version of line 3 without variable assignment. Hopefully that is not too much information.