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 Dates and Times in Python (2014) 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.