INTRODUCTION...................................................................................6
CHAPTER 1- WHAT IS PYTHON? .......................................................14
1.1 AN OVERVIEW.............................................................................. 14
1.2 FOR WHOM PYTHON IS APPROPRIATE?............................................. 15
1.3 WHY SHOULD YOU LEARN PYTHON?................................................17
CHAPTER 2- HOW PYTHON WORKS? ...............................................24
2.1 EASY TO READ AND WRITE .............................................................. 24
2.2 COMPILED VS INTERPRETED ............................................................ 24
2.3 TYPED DYNAMICALLY.....................................................................27
2.4 GARBAGE COLLECTION ................................................................. 28
2.5 PYTHON 2 AND PYTHON 3 ............................................................. 29
2.6 LEARNING THE BASICS .................................................................... 30
2.7 DOWNLOADING PYTHON .............................................................. 30
CHAPTER 3- BASIC RULES AND PRACTICAL APPLICATIONS ..........33
3.1 INTERACTION WITH PYTHON ............................................................ 34
3.2 RUNNING A SCRIPT USING COMMAND LINE..................................... 38
3.3 DATA TYPES .................................................................................. 41
3.4 BUILT-IN FUNCTIONS....................................................................... 54
3.5 BASIC OPERATORS......................................................................... 62
CHAPTER 4- MAKING YOUR OWN PROGRAM................................65
4.1 DECLARING TYPES OF VARIABLE STRINGS.........................................65
4.2 PYTHON TUPLES.............................................................................71
4.3 PYTHON DICTIONARIES .................................................................. 77
4.4 CONDITIONAL STATEMENTS ............................................................ 84
4.5 LOOPS ......................................................................................... 89
CHAPTER 5- MISTAKES TO AVOID WITH PYTHON............................98
CONCLUSION .................................................................................105