Series in Computational Physics
Steven A. Gottlieb and Rubin H. Landau, Series Editors

Introduction to Python for Science and Engineering

This guide offers a quick and incisive introduction to Python programming for anyone. The author has carefully developed a concise approach to using Python in any discipline of science and engineering, with plenty of examples, practical hints, and insider tips.

Readers will see why Python is such a widely appealing program, and learn the basics of syntax, data structures, input and output, plotting, conditionals and loops, user-defined functions, curve fitting, numerical routines, animation, and visualization. The author teaches by example and assumes no programming background for the reader.

David J. Pine is the Silver Professor and Professor of Physics at New York University, and Chair of the Department of Chemical and Biomolecular Engineering at the NYU Tandon School of Engineering. He is an elected fellow of the American Physical Society and American Association for the Advancement of Science (AAAS), and is a Guggenheim Fellow.

chapter 1|2 pages


chapter 2|30 pages

Launching Python

chapter 3|28 pages

Strings, Lists, Arrays, and Dictionaries

chapter 4|20 pages

Input and Output

chapter 5|18 pages

Conditionals and Loops

chapter 6|56 pages


chapter 7|32 pages


chapter 8|18 pages

Curve Fitting

chapter 9|34 pages

Numerical Routines: SciPy and NumPy

chapter 10|48 pages

Data Manipulation and Analysis: Pandas

chapter 11|28 pages


chapter 12|24 pages

Python Classes and GUIs