"Course notes
This course is part of the Scientific Computing series, and as such many of the examples chosen are of most relevance to scientific computing.
The course notes (in various forms) are available here.
The files used during the course are available here.
This course is aimed at those who already know how to program in another high level programming language (such as C/C++, Fortran, Java, Perl or Visual Basic) and who now wish to learn Python. (Those with little or no prior programming experience should try the "Python: Introduction for Absolute Beginners" course instead.) The aim of this course is to provide sufficient familiarity with Python that attendees can attend any of our more advanced Python courses and easily follow any of the widely available Python tutorials on the more complex aspects of the language."
Python runs on Windows, Linux/Unix, Mac OS X, OS/2, Amiga, Palm Handhelds, and Nokia mobile phones. Python has also been ported to the Java and .NET virtual machines.
Python is distributed under an OSI-approved open source license that makes it free to use, even for commercial products.
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python's elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.
This is the first in a series of online tutorial lessons designed to teach you how to program using the Python scripting language.
There is something for just about everyone here. Beginners start at the beginning, and experienced programmers jump in further on. You simply need to enter the series of lessons at the point that best fits your prior programming knowledge.
"You could also use the csv module
import csv
myfileobj = open("myfiletab.txt","read")
csv_read = csv.reader(myfileobj,dialect=csv.excel_tab)
myval1 = []
myval2 = []
myval3 = []
for line in csv_read:
# filter header and stuff using some criterion
if len(line) = 3:
myval1.append(line[0])
myval2.append(line[1])
myval3.append(line[2])"