Join Barron Stone for an in-depth discussion in this video Installing Python 3 for Mac, part of Programming Foundations: Real-World Examples.
- If you're on a Mac, installation is just as simple, and I'll walk you through those steps. For this course, I'll be using Python Version 3.5 in IDLE which is the integrated development environment that's included with the Python Installer. If you already have a version of Python 3 installed in your system, then you should be good to go and able to run most of the example programs from the exercise files without any problems. In case you need it, this video will walk you through the entire process for downloading and installing Python 3.5 in Mac OS X. To get the Python Installer, go to python.org, and then go to the Download page.
For this course, I'm going to select the most recent version of Python 3 by clicking this yellow button near the top of the page. At the time of this recording, the latest version is 3.5. This will donwload the Mac Python Installer. I'll click on the package and walk through the installation. When the installer window pops up, just hit Continue, and then continue on through the rest of the prompts. I'll accept this software license, click Agree, and click Install. If the systems prompts you to enter your passoword, go ahead and enter that, and then go ahead and click Install Software.
Wait for the installation to complete. When the installation is complete, go ahead and click the Close button. We'll want to verify that Python and IDLE were installed correctly. To do that, I'll click on Spotlight Search and type "idle," which is the integrated development environment included with Python. The operating system should find IDLE, and if you hit Enter, it will bring up the Python shell in IDLE. If you see this, that means Python and IDLE were installed correctly. If you want to open up one of the example scripts, you can go to File, Open, and then navigate to the exercise files.
I have them saved on my desktop, so I'll go there and choose an example from the next chapter. Double-clicking on it will open up the scipt in the IDLE text editor. Now that I've verified that Python and IDLE are installed and working correctly, I'm ready to get coding.
- Reusing functions
- Local vs. global variables
- Creating and naming custom objects
- Class inheritance
- Modules and packages
- Multidimensional lists and tuples
- Queues and stacks
- Creating and combining sets
- Storing data in dictionaries
- If/else and switch statements
- For vs. while loops
- Error handling
- Polling and event-driven programming