A sample Python program
Building blocks of programming
Four types of data
What a variable is
Rules for naming variables
Giving a variable a value with an assignment statement
A good way to name variables
Special Python keywords
Case sensitivity
More complicated assignment statements
Print statements
Basic math operators
Order of operations and parentheses
A few small sample programs
Additional naming conventions
How to add comments in a program
Use of “whitespace”
Errors in programs
2. Variables and Assignment Statements
Get Learn to Program with Python 3: A Step-by-Step Guide to 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.