In this article I will give you an introduction to Python 3. This will be the first article of a series about Python with the intention to give you a tutorial where you can start learning Python and have hands-on examples to ease your learning efforts. [Read more…]
After the introduction and installing Python let’s jump right ahead and write the first lines of code with Python 3.
The first step is to fire up the interactive interpreter with the python3 command. The three arrow-heads (or greater signs) indicate the prompt where we can type in our commands for the interpreter. We will type in the following text: “print(‘We want a shrubbery!’)” and hit return. [Read more…]
If you are using Windows you have to do some more configuration than using a Unix-like system (Linux, Mac). That’s just because.
In this article we will have a look at numbers and strings because they are the base of development with Python. [Read more…]
We already know that a list can be written as comma-separated values between square brackets and the elements don’t have to be from the same type. Naturally this latter can cause some confusion and errors if you tend to forget about this feature. [Read more…]