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.

Python Dates and Times in Python Let's Build a Timed Quiz App Simple Time Machine

Ronnie Barua
Ronnie Barua
17,665 Points

??? How can I have a Workspace and console just like Treehouse in my Mac pro.

I am in need for blank space where I can write my Script and keep them as a file. Thanks so much in advance.

time_machine.py
import datetime

starter = datetime.datetime(2015, 10, 21, 16, 29)

def delorean():

2 Answers

Martin Luckett
Martin Luckett
32,591 Points

Ronnie,

If I understand your question correctly you are looking for an Integrated Development Environment for Python that works on your Mac.

There is an entry for this on the Python.Org wiki :

https://wiki.python.org/moin/IntegratedDevelopmentEnvironments

It is a bit old but should point you in the right direction.

On my Macs I use PyCharm or occasionally BBEdit. The free version of BBEdit, TextWrangler, is also pretty good.

It is possible to use python with Xcode and Eclipse as well but it requires a bit of setup to do that.

[edit: be aware that BBEdit and Textwrangler are text editors that recognise Python but don't run Python. You will need to run the Python files from a console (Terminal)]

Ronnie Barua
Ronnie Barua
17,665 Points

Thanks Martin! I'll try all of them you've pointed out.