Programming: Learn Python

Introduction

Python is a simple programming language that anybody can learn. It is fun,creative, and challenges your mind to be innovative. Python can help you with your schoolwork, problem solving, and even your homework! Remember to have fun as you to, so are you ready to jump into the world of programming?!

 

Downloading Python 

Python is a free, readable, and accessible programming language,

but in order to use it we’ll have to install it first.

Installing Python on Windows

For windows you can download it for free by going to their website: https://www.python.org/

After you have gotten to the website click Downloads and then after your done with that click Python 3.6.1 (or get the latest version). Then click the icon at the bottom of your screen.

After that click install now and when the computer asks whether or not

to make changes to your computer click next. Then click close once the

installation finishes, and  you should see a Python 3 entry in your windows

start menu.

Installing Python on Mac OS X

If your using a Mac do the following steps to Install Python:

There are two different installers. The one you download depends on which

version of Mac OS X you have installed. (To find out, click the Apple icon in the

top menu bar, and choose  About this Mac.) Choose the appropriate installer

as follows:

  • If your using the Mac OS X version 10.5 or higher, download

the 32-bit version of Python 3 for i386/PPC.

  • If your using Mac OS X version 10.6 or higher, download the

64-bit version of Python  3 for x86 -64.

Once it’s downloaded  double – click the file ( it should be something

like python-3.5.1-macosx10.6.pkg). Then agree to the license and

follow the instructions on the screen. You should be prompted for the administrator password for your Mac and if you don’t have the password ask a parent.

 

On the older versions of Mac you might also need to install an

additional piece of software called ActiveTcl:

  1. After installing Python, navigate to Go > Applications and find Python 3.5 in the list of applications.

  2. Double-click the Python folder and then double-click IDLE.

  3. If you see something like “WARNING: The version of Tcl/Tk in use may be unstable,” you need to download ActiveTcl. If you don’t see that however you can ignore the following steps.

  4. Visit http://www.activestate.com/activetcl/downloads/  and  download the latest version of ActiveTcl, making sure that you select the version for Mac Os X.

  5. The name of the downloaded file should end with .dmg. Double-click the file, and then double-click the ActiveTcl package in the window that come up. Then Follow the instructions, agreeing to the license and installing to the default location. You should be prompted for the administrator password again.

  6. Now reinstall Python by simply running the installer again.

Installing Python on Ubuntu

Python is already preinstalled on Ubuntu, but you’ll need to install IDLE  in order to follow the instructions on this website. Here’s how you do that:                                                                                          1. Click the orange shopping bag icon on the Sidebar to open the Ubuntu Software Center. If you don’t see that click the Dash Home icon and enter Software in the dialog.

2. Enter idle in the search box in the top-right corner of the Software Center.

3. In the list of software, select the latest version of IDLE.

4. Click Install.

5. Enter your administrator password and click authenticate . (If you don’t have

the password ask a parent or whoever controls the machine.)           On some versions of Ubuntu, IDLE does not show up when you search the Software Center. You’ll need to install it using the Terminal. Open a terminal by pressing CTRL-ALT-T. Then do the       following:

  1. Enter sudo apt-get update  at the $ prompt.  Then enter the administrator (sudo) password on the next line when prompted, and then a bunch of text should appear as Ubuntu updates its list of software.

  2. Once you’re returned to the $ prompt, enter the following:                            sudo apt-get install idle3                                                                                        You should see several messages across the Terminal as Ubuntu downloads and installs the new code that it need in order to install IDLE. You should be returned to the $ prompt.

 3. You should now be able to run IDLE 3 in the Ubuntu Application or by entering idle3 in a new Terminal.

Now that we have the latest version of Python, lets give it a try.

After You’ve Installed Python

If your using a Mac, navigate to Go  > Applications and open the Python 3.5  folder to find IDLE. If your using Ubuntu the

Applications > Programming menu should have an entry titled IDLE(using Python-3.4) or later.  The window that opens up is called the Python shell.