Non-Programmers+Tutorial+For+Python

Non-Programmers+Tutorial+For+Python - Non-Programmers...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Non-Programmers Tutorial For Python Josh Cogliati September 8, 2002 Copyright(c) 1999-2002 Josh Cogliati. Permission is granted to anyone to make or distribute verbatim copies of this document as received, in any medium, provided that the copyright notice and permission notice are preserved, and that the distributor grants the recipient permission for further redistribution as permitted by this notice. Permission is granted to distribute modified versions of this document, or of portions of it, under the above conditions, provided also that they carry prominent notices stating who last altered them. All example python source code in this tutorial is granted to the public domain. Therefore you may modify it and relicense it under any license you please. Abstract Non-Programmers Tutorial For Python is a tutorial designed to be a introduction to the Python programming language. This guide is for someone with no programming experience. If you have programmed in other languages I recommend using The Python Tutorial written by Guido van Rossum. This document is available as L A T E X, HTML, PDF, and Postscript. Go to http://www.honors.montana.edu/˜jjc/easytut/ to see all these forms. If you have any questions or comments please contact me at jjc@iname.com I welcome questions and comments about this tutorial. I will try to answer any questions you have as best as I can. Thanks go to James A. Brown for writing most of the Windows install info. Thanks also to Elizabeth Cogliati for complaining enough :) about the original tutorial,(that is almost unusable for a non-programmer) for proofreading and for many ideas and comments on it. Thanks to Joe Oppegaard for writing all the exercises. Thanks to everyone I have missed. Dedicated to Elizabeth Cogliati CONTENTS 1 Intro 1 1.1 First things first . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Installing Python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.3 Interactive Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.4 Creating and Running Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.5 Using Python from the command line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 Hello, World 3 2.1 What you should know . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.2 Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.3 Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.4 Talking to humans (and other intelligent beings) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.5 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Exercises ....
View Full Document

This document was uploaded on 08/10/2011.

Page1 / 88

Non-Programmers+Tutorial+For+Python - Non-Programmers...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online