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

Actually, Use pytz Instead: Question regarding syntax during the video lecture

Dear Kenneth, I have question regarding 07:27 of the video Actually, Use Pytz Instead.

When you typed in auckland instead of pacific, you actually broke the line of code, and it still worked for some reason.

Instead of apollo_13_utc.astimezone(aukland).strftime(fmt)

You typed apollo_13_utc.astimezone(auklandme(fmt)

Instead of apollo_13_utc.astimezone(mumbai).strftime(fmt)

You typed apollo_13_utc.astimezone(mumbaiime(fmt)

How did this code even pass through?

I noticed this too. It's like he went back and wrote over some of it but the end of the previous code was still there but it still worked.

1 Answer

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

IIRC, I did that in the shell, yeah? Our shell doesn't always follow edits correctly so the characters will still be there but won't show up. The joys of using a JavaScript bridge...