CHAPTER 1
INTRODUCTION TO PYTHON
This chapter contains an introduction to Python, with information about useful tools for installing modules, basic constructs, and how to work with some data types.
The first part of this chapter covers how to install Python, some environment variables, and how to use the interpreter. You will see code samples and also how to save code in text files that you can launch from the command line. The second part of this chapter shows you how to work with simple data types, such as numbers, fractions, and strings. The final part of this chapter discusses exceptions and how to use them in scripts.
NOTE The Python files in this book are for Python 3.x.