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 Python for File Systems Navigation Absolutely

Try Again... At least let me see the console so I can see what's going wrong...

What have I done wrong here? I honestly have no clue apart from "Try again!"

absolute.py
import os
def absolute(pathstr, rootstr):
    if os.path.isabs(pathstr) == False:
        return rootstr + pathstr
    else: 
        return pathstr

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Ethan Whitlock ! You're doing terrific! In fact, your code passes both steps for me when I copy/paste it into the challenge. But this begs the question: why doesn't it pass for you? My guess here is that there may be some caching thing happening either client-side or server side. I would suggest closing down the browser and restarting this challenge and then pasting it. You might even try logging out of Treehouse and back in (in case it's something to do with the session). You might also try clearing your browser cache, but this works just beautifully for me!

Hope you get this figured out! :sparkles:

I sat looking at my screen for a solid 30 minutes trying to understand what I did wrong, incase I missed some parenthesis or maybe had some incorrect syntax. Thank you for this.

Anthony Crespo
seal-mask
.a{fill-rule:evenodd;}techdegree
Anthony Crespo
Python Web Development Techdegree Student 12,973 Points

What I always do is open an IDE in another window and test my challenge there and if it's not working I can see a more specific error message.