Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
31Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Python Tutorial

Python Tutorial

Ratings: (0)|Views: 329 |Likes:
Published by dalequenosvamos
Python 3.1 official documentation
Python 3.1 official documentation

More info:

Published by: dalequenosvamos on Dec 22, 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

04/04/2012

pdf

text

original

 
Python Tutorial
Release 3.1
Guido van RossumFred L. Drake, Jr., editor
June 26, 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. . . . . . . . . . . . . . . . . 214.5
Statements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214.6 Defining Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224.7 More on Defining Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234.8 Intermezzo: Coding Style. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.1 More on Lists. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295.2 The
statement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325.3 Tuples and Sequences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335.4 Sets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345.5 Dictionaries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345.6 Looping Techniques. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355.7 More on Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365.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
8.1 Syntax Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538.2 Exceptions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538.3 Handling Exceptions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
i

Activity (31)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
fatullahdonie liked this
Siegfried Eman liked this
an1meshady liked this
apradhan123 liked this
apradhan123 liked this
maria4now liked this
pkrakesh liked this
mariuszantal liked this

You're Reading a Free Preview

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