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

General Discussion

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Python Fun

So, this is way early, but I thought I'd share a few fun things in Python.

If you already have Python installed, open it up (type python in your terminal) and then type:

import antigravity

and press return.

OK, back to Python's shell.

Now type:

import this

This is the Zen of Python and is something very much worth reading and remembering, not just for Python but for almost all programming you do.

Alright, last one in the Python shell. This one is a bit of an in-joke for Python, but type:

from __future__ import braces

Read the error message for the joke.

And, lastly, here's a handy cheat sheet I just came across today.

Let me know if you have any Python questions I can ask before the course comes out (last half of July, before you ask)!

5 Answers

Brain explosion. I already have a question but, I'll focus on the tracks I'm on. I'll be ready in July.

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

No, give in, ask :). Surrender yourself to the curiosity!

So excited...

Lee Hughes
Lee Hughes
8,380 Points

Kenneth Love I'm soooo pumped for this course. Expect a lot of questions from me during it...

While I'm learning Rails at the moment which is cool for some reason I'm attracted to Python more due to how it can be used in science and data.. I'm heavily attracted to the quantified self movement which I think Python will work well with.

Excited!

Trent Burkenpas
Trent Burkenpas
22,388 Points

I cant wait for the python course. Is there going to be any projects?

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

The first course isn't very project-heavy but the ones I have planned to follow it will definitely have plenty of project-y goodness in them.

i don't get the last one from future import braces

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Python doesn't have braces ({ }) for anything but creating dicts/sets. The syntax error is "Not a chance", because the language won't ever use braces to denote blocks.