<< Chapter < Page Chapter >> Page >

Small core, large library

Like Java, Python has a small compact core and a large, extensible library . Thus, much of what you will need to do has already been written and tested for you. Yourtask will be to write the code to glue those library components together, and to write new capabilities on an as-needed basis.

Let's Write a Program

Getting ready

Download and install the software

The first step is to go to (External Link) with your web browser. Download, and install the Python software using thedownload link that you will find there.

I'm going to assume that either you already know how to do this, or you can get help from a friend. In other words, I'm not going to try to explain how todownload and install the Python software.

Note: If you are working in an ACC computer lab on the Northridge campus, you don't need to download and install the Python software. It hasalready been installed. If you are working in an ACC computer lab on a different campus and you don't find the Python software, ask the lab manager to downloadand install it. If you are working on your computer at home, at some point you will need to download and install the Python software.

Starting the programming environment

As I mentioned earlier, all of my instructions will be based on the use of Python running on my Windows operating system.

However, as I also mentioned earlier, you have many choices for using Python. If you are running on some other platform, you will need to translate my instructionsfrom Windows jargon into the jargon of your platform.

Enough talk -- let's begin

Find the Start button on the task bar on your Windows desktop. Select

Start/All Programs/Python x.y

where x.y is the version of Python that you have downloaded and installed. At the time of this writing, I have version 3.4.1 installed on my computer, and theselection shows on the menu as Python 3.4.

What do you see?

When you make this selection, you should see a menu having at least the following five options :

  • IDLE (Python GUI)
  • Module Docs
  • Python (command line)
  • Python Manuals
  • Uninstall Python

The Python Manuals

Don't be bashful about selecting and reading the Module Docs and the Python Manuals. There is a wealth of information contained there, including a tutorial.

The library reference

A good way to get a feel for the breadth and power of Python is to select Python Manuals from the menu and then select the Library Reference link. (The Library Reference is also available online as of the time of this writing.)

Most of what you see there probably won't mean much to you at this point in time, but hopefully will be familiar territory after you complete this course.

IDLE (Python GUI)

Selecting IDLE (Python GUI) from the menu brings up a window titled "Python 3.4.1 Shell" on my computer. This is one of the interactive programming environments available with Python on MicrosoftWindows.

What does it look like ?

When you select IDLE (Python GUI) from the menu, you should see something like Figure 1 .

(Note to blind and visually impaired students: I don't know if you will find the Python Shell to be accessible. If not, don't worry. We will get to acommand-line version that should be accessible a little later.)

Questions & Answers

what is biology
Hajah Reply
the study of living organisms and their interactions with one another and their environments
AI-Robot
what is biology
Victoria Reply
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
in what situation (s) would be the use of a scanning electron microscope be ideal and why?
Kenna Reply
A scanning electron microscope (SEM) is ideal for situations requiring high-resolution imaging of surfaces. It is commonly used in materials science, biology, and geology to examine the topography and composition of samples at a nanoscale level. SEM is particularly useful for studying fine details,
Hilary
cell is the building block of life.
Condoleezza Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Itse 1359 introduction to scripting languages: python. OpenStax CNX. Jan 22, 2016 Download for free at https://legacy.cnx.org/content/col11713/1.32
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Itse 1359 introduction to scripting languages: python' conversation and receive update notifications?

Ask