Part One: Terminology

2K 30 2
                                        

Well, thanks for reading my book.
You see, Python is a very complex language to the inexperienced programmer. Let me explain a few things. The version of Python I am writing about is Python 2. Python 2 is a more stable version of Python, and easier for me to explain. I'm going to assume you're reading this book because you're either new to programming, or need a refresher. So, because of my assumption, we will start with terminology.

1. The Import Statement
The import statement is rather easy. In Python programming, there are different libraries. They cannot be used unless you "import" them. For example, say we want to call a system command. To do this, we'd have to "import" the OS library. To import the os library, we'd have to do this:
::code::
import os
::end code::

2. library
No, it's not the kind you rent a book from. This kind of library is used to give developers access to various functions, to help aide programming.
•••••••
A/N: I'm sorry I haven't updated this in a while. I've been kinda busy.

Computer Programming -- Python (BASICS)Where stories live. Discover now