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

Table Of Contents

Python under Windows
Let’s use IDLE in this course
IDLE startup message
Hello world!
Variables and types
Numbers
Numeric expressions
Boolean expressions
String
String conversions
String operations
Changing strings. Not!
String methods
List
List operations
List methods, part 1
List methods, part 2
Converting lists between strings
Objects, names and references
Dictionary
Forgetting things: 'del'
Forgetting things: garbage collection
Dictionary methods, part 1
Dictionary methods, part 2
Tuple
String formatting
Write scripts in IDLE
'if' statement; block structure
Dictionary often better than if… elif…
Built­in types and their Boolean interpretations
'for' statement
Built­in functions 'range' and 'xrange'
'while' statement
Optional 'else' block in loops
Error handling: ’try’ and ’except’
How to split up long lines
Statements not covered in this course
What is Python?
Features of Python
How to define your own function
Function features
Function arguments: fixed
Function arguments: variable
Function arguments: default values
Function arguments: keywords
Function without 'return': value None
The 'math' module: functions and constants
Functions are objects; names are references
Built­in function 'map'
Built­in function 'reduce'
Built­in function 'filter'
Files: reading
Files: writing
Files: read by 'for' loop
Files, old­style read strategies
Example: Reverse complement NT sequence
How to use the module: ’import’ statement
Module self­test code: the ’__name__’ trick
Now, the ’import’ statement behaves
How are modules found by ’import’?
Modules are easy, fun, and powerful
Namespaces
Avoiding clutter in your namespace
The special ’__xxx__’ variables
Doc strings: ’__doc__’
Documentation resources
Classes vs. objects (instances)
A class example: Geometrical shapes
Instances of classes
Changing an instance: attribute assignment
Changing an instance: references
Changing an instance: attribute status
Changing an instance: attribute add/delete
Inspecting objects: dir
Equality between objects
Special methods in classes
Using the special methods, part 1
Using the special methods, part 2
Inheritance: Class hierarchies
Instances of classes using inheritance
Example: Handle sequences, part 1
Example: Handle sequences, part 2
Module 're', part 1
Module 'sys', part 1
Module 'sys', part 2
Module 'os', part 1
Module 'os', part 2
Module 'os.path', part 1
Module 'os.path', part 2
Module 'os.path', part 3
Some other useful modules
0 of .
Results for:
No results containing your search query
P. 1
Python Course

Python Course

Ratings: (0)|Views: 24 |Likes:
Published by pastuxso

More info:

Published by: pastuxso on Jan 05, 2011
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/12/2011

pdf

text

original

You're Reading a Free Preview
Pages 4 to 51 are not shown in this preview.
You're Reading a Free Preview
Pages 55 to 65 are not shown in this preview.
You're Reading a Free Preview
Pages 69 to 107 are not shown in this preview.

Activity (4)

You've already reviewed this. Edit your review.
1 hundred reads
akbisoi1 liked this
Ashok liked this
Ashok 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)//-->