In this tutorial we are going to play a little bit with Python as a programming language. Since the web is full of good introduction tutorials, in this one, we will give few example that can be useful for application, and we will try different programming environment, to get a feel of each of them.

This tutorial picks up from the previous one, that is, it assumes you have installed Python, Numpy, Scipy, matplotlib. It will also use the environment present (notepad++, ipython, spyder and eclipse).

Goal

At the end of this tutorial you will now few basics about Python as programming language. In addition you will

  • use Python for solve problems (programming)
  • use Python for solve problems that arise in the lab
  • use modules and libraries
  • try different paradigms for programming
  • try different developing environments

Feeling the water (console)

Let’s start running the console line. Since Python is interpreted, the console can read and execute one line at the time.

[code]
>> x = 1
>> x
1
[/code]