Abstract
This chapter covers the following topics:
-
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
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Irv Kalb
About this chapter
Cite this chapter
Kalb, I. (2018). Variables and Assignment Statements. In: Learn to Program with Python 3. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3879-0_2
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3879-0_2
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3878-3
Online ISBN: 978-1-4842-3879-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)