Python Episodes

Categories
Kode47

Types of Python Error Messages

We learned about how to get help from Python in the last episode. In this episode, we are going learn about the three types of error messages that Python gives us and these are; `syntax errors`, `runtime errors`, and `logical or semantic errors`


Kode47

How to get help from Python

In Episode #27, we learned about some of Python's `values`, `types`, and `Reserved Keywords`. In this episode, we are going to learn about how to use the Python interpreter and the built-in functions `dir` and `help` to learn more about Python.


Kode47

Python Values, Types and Reserved Keywords

In this episode, we are going to learn how to use the Python interpreter to find out what the Python reserved keywords are.


Kode47

Running Python Programs

In Episode 17 we installed Python and used Sublime Text to run a small Python program. In this episode, we are going to explore other tools and techniques of running our Python programs using the Python interpreter. An interpreter or virtual machine is a tool that will convert our program into a language that our operating system can understand. Python runs on all operating systems, Mac OSX, Windows, Linux, etc. We will be using Python 3 for this and most tutorials.


Kode47

Virtualenv

There are several ways to manage Python versions and Python environments and some of these include `Pipenv`, `Anaconda` and `Virtualenv`. This blog will focus on the `Virtualenv`. According to its [online documentation](https://virtualenv.pypa.io/en/latest/) Virtualenv is used to create isolated Python environments. Using a virtual environment helps to keep Python projects isolated and the developer does not have to worry about accidentally changing versions of her libraries, thereby unwittingly breaking her application. Below are some quick steps on how to install and create virtual environments with Virtualenv. You'll need to have Python 3 installed for Virtualenv to work.