Chapter 2. Getting Started
Chapter Topics
Program Input/Output
Comments
Operators
Variables
Python Types
Indentation
Conditionals
Loops
Files
Errors
Functions
Classes
Modules
This “quick start” section is intended to “flash” Python to you so that any constructs recognized from previous programming experience can be used for your immediate needs. The details will be spelled out in succeeding chapters, but a high-level tour is one fast and easy way to get you into Python and show you what it has to offer. The best way to follow along is to bring up the Python interpreter in front of you and try some of these examples, and at the same time you can experiment on your own.
We introduced how to start up the Python interpreter in Chapter 1 as well as in the exercises ...
Get Core Python Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.