So right now, we're going to start learning about Python, but first we need an editor in order to
write our code and of course, compile it.
So let us click on the Raspberry Pi application menu here.
Go to programming and you're going to see two ideas.
One of them is called GenY on.
The other one is called Thony.
We're going to be working with junior programmers editor.
Let's open it.
And here it is.
I'm going to close everything now, Gene is an editor, actually, and it supports multiple programming
languages.
It depends on how you actually save your file.
So what I want to do is we're going to create a new python file.
So I'm going to click on New and I'm going to click on File Save as.
And go to documents, I'm going to go through the file here, I'm going to call it application.
One dot boy, you can call it whatever you want and click on Save.
This is our python for no, let us do something really, really simple, which is, let's say, adding
two numbers and printing.
So here's the thing.
There is no variable types actually in Python.
So there is no integer, there is no float, there is no byte.
There is nothing like that.
You can just define a variable.
And depending on how you use it, it's going to cast its type.
So let's say I define X equals five.
You don't have to use any semicolon here.
Y equals, let's say two, and then let us say Z equals X plus Y and then just say print open a parenthesis
Z.
OK.
Now if we compile this.
And then execute.
We're going to see that we are printing the results here at seven.
OK, so let's see, we are opening a terminal here and it's showing us the result.
That's a great now first enter in order to go back here.
So it is as simple as that.
Now, let us say, if I want to print a message, I am going to open a parenthesis and a double quotation
and say this is the result.
OK, just a very simple example.
And then build.
Of course, compile first in order to compile the code and next execute.
I've been here and as you can see, this is the result.
Seven, OK, so this is a very light introduction and we're going to build on that.