Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.