1. Introduction to Python

by HobbyGenius VIP on May 11, 2014 at 5:15 am | 0 comments.


Welcome to the Programming in Python tutorials. We will be using learning how to program the Raspberry Pi starting off with some simple programs and progressing to more advanced ones to make the most of the your computer. Later on we will look at connecting external hardware with the use of the GPIO to use the RPi as a fully embedded platform.

Raspberry Pi

Raspberry Pi

Python on the RPi

The Raspberry Pi was originally developed to be an easy to use, affordable computer similar to some of the early computers of the 80s and early 90s. In those days computers were easy to program and didn’t require extra software to be downloaded: they could be altered and experimented with and were easy to learn to program.

Today’s computers are complicated and the software behind them is hidden which makes it very difficult for those wanting to learn about computers and programming. The Raspberry Pi was designed to be programmed in Python. It is a very versatile programming language which has been around since the early 90s; it works on any platform and is already well established in the programming world. Since it is a very easy language to learn, once the basics have been mastered, the concepts can be transferred to other, more complicated languages.

Python Logo

Python Logo

 

 

Like Scratch, Python is already installed on the Raspberry Pi so once you have it setup, you can dive straight in. We will start by looking at the Python console and then start writing some code which consists of more than one line. So let’s go…