Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
27Activity
0 of .
Results for:
No results containing your search query
P. 1
Python Tutorial

Python Tutorial

Ratings:

4.75

(1)
|Views: 1,220|Likes:
Published by montel edwards

More info:

Published by: montel edwards on Jul 23, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/26/2011

pdf

text

original

 
Python Tutorial
Release 2.6.2 
Guido van RossumFred L. Drake, Jr., editor
July 22, 2009
Python Software Foundation
Email:
docs@python.org
 
CONTENTS
2.1 Invoking the Interpreter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52.2 The Interpreter and Its Environment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.1 Using Python as a Calculator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.2 First Steps Towards Programming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Statements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194.2
Statements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194.3 The
Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204.4
Clauses on Loops. . . . . . . . . . . . . . . . . . . 204.5
Statements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214.6 Defining Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214.7 More on Defining Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234.8 Intermezzo: Coding Style. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.1 More on Lists. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295.2 The
statement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335.3 Tuples and Sequences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335.4 Sets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345.5 Dictionaries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355.6 Looping Techniques. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365.7 More on Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375.8 Comparing Sequences and Other Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
6.1 More on Modules. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406.2 Standard Modules. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426.3 The
Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426.4 Packages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
7.1 Fancier Output Formatting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477.2 Reading and Writing Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
i

Activity (27)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
ratish kakkad liked this
RaghuNandan liked this
in1ne7a20 liked this
in1ne7a20 liked this
tim3d liked this
Wa Fi liked this
maria4now liked this
ABaba1 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->