I'm a bit confused with the whole Python program thing. I have a Macbook that already has Python in it, so would I have to download it again for IDLE? Another is, I watched Lesson 2 (2011 version) and the professor wrote a script in comment in IDLE and it runs on Python? How do I get mine to work like that? I saved it as .py and then I pressed fn&f5 to run it but it is "invalid syntax," and highlight the 7 in the 2.7.5 which indicates it's version..
http://www.python.org/getit/mac/tcltk/ http://docs.python.org/2/using/mac.html#how-to-run-a-python-script http://stackoverflow.com/questions/8792044/how-do-i-launch-idle-the-development-environment-for-python-on-mac-os-10-7
Well I gues it same as in Linux. So you only need to install IDLE and go to IDLE preferences to see/set keystrokes (and maybe IDLE is just broken)
Here's a BASH script I wrote to launch IDLE on my 10.5.8 Mac. cat /usr/bin/idle #!/bin/bash /usr/bin/python /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/idlelib/idle.py & exit 0
if you have idle installed you just type idle in terminal, open new file where you type you code/script and you execute it with f5 which shows in idle interpreter
I think the preference suggested is the canopy version of python even for mac which includes idle. the instructions were at last slides of week 1
Thanks everyone! I'll try everything thing out and get back to you!
I just used zlatandebian's method, and it works! Thanks! :D
You welcome :)
Join our real-time social learning platform and learn together with your friends!