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 trialHazel Dhliwayo
4,321 PointsThe version of the Python associated with this video of "running scripts"
What is the version of the Python associated with this video of "running scripts", l just started learning and l don't know which version l'm using
1 Answer
Louise St. Germain
19,424 PointsHello Hazel,
As of right now, Python 3.6.4 is running on Treehouse Workspaces. An easy way to check is to just type "python" (without quotes) in the console, and press return. This will start up Python. It will write a few introductory lines before giving you the Python prompt (">>>"). The first line of the introductory text shows the version of Python. (To exit out of Python, press Ctrl+D to exit, or type "exit()" with no quotation marks.)
treehouse:~/workspace$ python
Python 3.6.4 (default, Nov 26 2018, 23:39:19)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
The video right after the one you are writing about is all about this Python shell: https://teamtreehouse.com/library/the-python-shell. You will find more details that might be helpful for you. You will also see in that video that it was also running Python 3.6.4 when the video was being filmed, so everything should still be working exactly the same in your Workspace.
If you have Python on your local computer and would like to check the version, you can also repeat the same procedure in a console or command prompt window.
I hope this helps!
Hambone F
3,581 PointsHambone F
3,581 PointsYou can also just type:
python --version
and will get back something like:
Python 3.6.4