So let's get started.
What do you need to program using Python?
Well, of course, you must somehow install Python, and there are many possibilities on how you can
do this.
You can, for example, just use the command line tool, which is especially used when you have some
Linux distribution.
But I want to present to you a very simple solution on installing Python and also installing some editors
that you can use to run the code.
And the software package that we are going to install is called Anaconda.
So you go to W W W Dot Anaconda dot com.
And maybe it's a safe option.
Just in case this website expires to just go to Google and Android Anaconda downloads and then go to
this website here.
So maybe in the future, this website may look a bit different, but right now at the end of 2021,
it looks just like this.
So you see here we have several products and there are several products for which you can pay what we
don't need this for us.
The free version is fully sufficient.
So here it's called Individual Edition, and it is an open source distribution, which means it's free.
So let's click here.
We are actually already on the site, but just make sure you are in at Individual Edition and then you
can either click here directly on download.
Just in case this is already correct for your system, or you can also select here additional installers
for Windows, Mac, OS and Linux.
So for me, this is already correct.
I have a 64 bit system and I also prefer the graphical installer because I think it's just the most
easy way to install it.
And right now, Python three point nine is the nearest version that is, I would say, working fine.
So we are going to work here with Python 3.9.
So of course, Python is always getting improved and updated.
So at the time you are watching this video may be the number here is higher already, but I think this
is absolutely no problem because I expect the code that we are programming here is going to run with
all the new versions of Python, especially if it's still Python.
Version three in the beginning here.
So this is fine for me and I click on download, wait for the download and then install the program.
So once the download is finished, you double click the installer and then it will open up such a window
here.
And to be honest, installer is very easy, very straightforward.
You just click on next and then you have to agree to the license agreement and then you can select for
whom you want to install it.
So I think it doesn't really matter.
I just selected all users, but you could also select just me.
Then you select the destination folder.
I also leave it as it is, and when you continue, then it will start to installation.
So I already installed Anaconda, so I will click Cancel.
But you just continue here, and the next steps will also be very, very easy.
So once the installation is finished, this will take a few minutes.
Then you can start your Anaconda Navigator.
So I just ride anaconda and this is called Anaconda Navigator.
So I run it.
And especially the first time you run it, some windows will open, and it will take a bit of time because
it's initializing.
But in a few seconds and I can't, I should start.
So here we are.
I have to click here, and you see we have some kind of navigator here.
And this is really one of the differences for using Anaconda or using Python with Anaconda compared
to using a conventional programming language, also compared to using a very simple version of Python.
So typically when you install or when you use another programming language, you just install a compiler
and then you can take basically any text editor that you have on your PC radio code and then compile
it and then run the code.
But here we want to have a bit more comfort.
And for this, we have installed this anaconda and it comes with this navigator, which contains all
the individual programs that we can use now to write programs in Python.
So I will explain to you in the following this Jupyter notebook, which will be our main tool of choice
because it's the most simple one.
But also I will explain to you Pi Charm Community and we as code because I think they are much more
comfortable and much more beautiful, and I personally use them.
But to put a beginning before I start this, let me just open up this cute console, which is basically
just a command line tool.
So you make this a bit larger so that you can see better and then zoom in or control plus.
So you see, it's just a command line tool, and I can now just start typing, for example, eight plus
three and then enter, which gives me 11.
And this has been calculated using Python.
I can also write, or I can define a variable as equal to two, and I can write three times a +1, which
is seven.
Once again, it has been calculated using Python.
I can, of course, also work with strings or texts so I can write hello and then rides, you know,
just call to text again.
Or I could also writes two times text, and then it gives me the output.
Hello, hello.
So you see, Python is already working.
It also gives you the version that we have installed and when the version was released.
And of course, this is really nice because you can use this like some kind of calculator, for example.
But it's not really that useful for writing code because you cannot save something here and to save
a code or to really write a program, we must use a text editor.
And for this, we will use Jupyter Notebook and also these two.
So let's get started with the actual coding, and in the next lecture, I want to explain to you how
to use Jupyter Notebook.