Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 20 Online
OpenStudy (anonymous):

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..

OpenStudy (anonymous):

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)

OpenStudy (rsmith6559):

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

OpenStudy (anonymous):

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

OpenStudy (anonymous):

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

OpenStudy (anonymous):

Thanks everyone! I'll try everything thing out and get back to you!

OpenStudy (anonymous):

I just used zlatandebian's method, and it works! Thanks! :D

OpenStudy (anonymous):

You welcome :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!