1
00:00:00,120 --> 00:00:01,320
So let's get started.

2
00:00:01,740 --> 00:00:04,980
What do you need to program using Python?

3
00:00:05,760 --> 00:00:11,490
Well, of course, you must somehow install Python, and there are many possibilities on how you can

4
00:00:11,490 --> 00:00:12,000
do this.

5
00:00:12,510 --> 00:00:19,320
You can, for example, just use the command line tool, which is especially used when you have some

6
00:00:19,320 --> 00:00:20,490
Linux distribution.

7
00:00:20,880 --> 00:00:27,420
But I want to present to you a very simple solution on installing Python and also installing some editors

8
00:00:27,420 --> 00:00:29,130
that you can use to run the code.

9
00:00:29,970 --> 00:00:34,230
And the software package that we are going to install is called Anaconda.

10
00:00:35,100 --> 00:00:38,880
So you go to W W W Dot Anaconda dot com.

11
00:00:39,330 --> 00:00:41,130
And maybe it's a safe option.

12
00:00:41,130 --> 00:00:48,120
Just in case this website expires to just go to Google and Android Anaconda downloads and then go to

13
00:00:48,120 --> 00:00:49,260
this website here.

14
00:00:50,400 --> 00:00:56,790
So maybe in the future, this website may look a bit different, but right now at the end of 2021,

15
00:00:56,790 --> 00:00:58,260
it looks just like this.

16
00:00:59,100 --> 00:01:05,580
So you see here we have several products and there are several products for which you can pay what we

17
00:01:05,580 --> 00:01:07,300
don't need this for us.

18
00:01:07,320 --> 00:01:09,300
The free version is fully sufficient.

19
00:01:10,140 --> 00:01:16,560
So here it's called Individual Edition, and it is an open source distribution, which means it's free.

20
00:01:17,280 --> 00:01:18,250
So let's click here.

21
00:01:18,270 --> 00:01:24,930
We are actually already on the site, but just make sure you are in at Individual Edition and then you

22
00:01:24,930 --> 00:01:27,480
can either click here directly on download.

23
00:01:27,780 --> 00:01:33,840
Just in case this is already correct for your system, or you can also select here additional installers

24
00:01:34,050 --> 00:01:37,440
for Windows, Mac, OS and Linux.

25
00:01:38,520 --> 00:01:40,260
So for me, this is already correct.

26
00:01:40,270 --> 00:01:46,920
I have a 64 bit system and I also prefer the graphical installer because I think it's just the most

27
00:01:46,920 --> 00:01:48,060
easy way to install it.

28
00:01:48,900 --> 00:01:55,470
And right now, Python three point nine is the nearest version that is, I would say, working fine.

29
00:01:55,710 --> 00:01:58,950
So we are going to work here with Python 3.9.

30
00:01:59,430 --> 00:02:03,210
So of course, Python is always getting improved and updated.

31
00:02:03,510 --> 00:02:08,759
So at the time you are watching this video may be the number here is higher already, but I think this

32
00:02:08,759 --> 00:02:14,850
is absolutely no problem because I expect the code that we are programming here is going to run with

33
00:02:14,850 --> 00:02:18,990
all the new versions of Python, especially if it's still Python.

34
00:02:19,200 --> 00:02:20,880
Version three in the beginning here.

35
00:02:21,930 --> 00:02:28,590
So this is fine for me and I click on download, wait for the download and then install the program.

36
00:02:29,220 --> 00:02:34,650
So once the download is finished, you double click the installer and then it will open up such a window

37
00:02:34,650 --> 00:02:34,920
here.

38
00:02:35,580 --> 00:02:38,670
And to be honest, installer is very easy, very straightforward.

39
00:02:39,150 --> 00:02:45,840
You just click on next and then you have to agree to the license agreement and then you can select for

40
00:02:46,200 --> 00:02:47,370
whom you want to install it.

41
00:02:47,730 --> 00:02:49,230
So I think it doesn't really matter.

42
00:02:49,230 --> 00:02:52,590
I just selected all users, but you could also select just me.

43
00:02:53,280 --> 00:02:55,740
Then you select the destination folder.

44
00:02:55,740 --> 00:03:01,290
I also leave it as it is, and when you continue, then it will start to installation.

45
00:03:01,950 --> 00:03:05,190
So I already installed Anaconda, so I will click Cancel.

46
00:03:05,190 --> 00:03:09,150
But you just continue here, and the next steps will also be very, very easy.

47
00:03:11,040 --> 00:03:13,890
So once the installation is finished, this will take a few minutes.

48
00:03:14,070 --> 00:03:17,070
Then you can start your Anaconda Navigator.

49
00:03:17,670 --> 00:03:22,560
So I just ride anaconda and this is called Anaconda Navigator.

50
00:03:23,430 --> 00:03:24,090
So I run it.

51
00:03:25,430 --> 00:03:31,820
And especially the first time you run it, some windows will open, and it will take a bit of time because

52
00:03:31,820 --> 00:03:32,810
it's initializing.

53
00:03:33,110 --> 00:03:35,690
But in a few seconds and I can't, I should start.

54
00:03:42,630 --> 00:03:43,560
So here we are.

55
00:03:43,590 --> 00:03:47,700
I have to click here, and you see we have some kind of navigator here.

56
00:03:48,450 --> 00:03:56,430
And this is really one of the differences for using Anaconda or using Python with Anaconda compared

57
00:03:56,670 --> 00:04:03,240
to using a conventional programming language, also compared to using a very simple version of Python.

58
00:04:03,870 --> 00:04:10,380
So typically when you install or when you use another programming language, you just install a compiler

59
00:04:10,530 --> 00:04:17,070
and then you can take basically any text editor that you have on your PC radio code and then compile

60
00:04:17,070 --> 00:04:18,390
it and then run the code.

61
00:04:19,560 --> 00:04:22,830
But here we want to have a bit more comfort.

62
00:04:23,400 --> 00:04:29,670
And for this, we have installed this anaconda and it comes with this navigator, which contains all

63
00:04:29,670 --> 00:04:34,650
the individual programs that we can use now to write programs in Python.

64
00:04:35,610 --> 00:04:41,190
So I will explain to you in the following this Jupyter notebook, which will be our main tool of choice

65
00:04:41,190 --> 00:04:42,690
because it's the most simple one.

66
00:04:43,170 --> 00:04:49,620
But also I will explain to you Pi Charm Community and we as code because I think they are much more

67
00:04:49,620 --> 00:04:53,700
comfortable and much more beautiful, and I personally use them.

68
00:04:54,810 --> 00:05:01,110
But to put a beginning before I start this, let me just open up this cute console, which is basically

69
00:05:01,110 --> 00:05:03,030
just a command line tool.

70
00:05:04,230 --> 00:05:11,110
So you make this a bit larger so that you can see better and then zoom in or control plus.

71
00:05:12,660 --> 00:05:18,960
So you see, it's just a command line tool, and I can now just start typing, for example, eight plus

72
00:05:18,960 --> 00:05:22,350
three and then enter, which gives me 11.

73
00:05:22,860 --> 00:05:25,080
And this has been calculated using Python.

74
00:05:26,010 --> 00:05:35,670
I can also write, or I can define a variable as equal to two, and I can write three times a +1, which

75
00:05:35,670 --> 00:05:36,520
is seven.

76
00:05:36,540 --> 00:05:39,330
Once again, it has been calculated using Python.

77
00:05:40,350 --> 00:05:47,850
I can, of course, also work with strings or texts so I can write hello and then rides, you know,

78
00:05:47,850 --> 00:05:49,350
just call to text again.

79
00:05:50,100 --> 00:05:56,020
Or I could also writes two times text, and then it gives me the output.

80
00:05:56,040 --> 00:05:56,760
Hello, hello.

81
00:05:57,870 --> 00:06:00,090
So you see, Python is already working.

82
00:06:00,090 --> 00:06:05,280
It also gives you the version that we have installed and when the version was released.

83
00:06:05,850 --> 00:06:11,670
And of course, this is really nice because you can use this like some kind of calculator, for example.

84
00:06:12,060 --> 00:06:19,160
But it's not really that useful for writing code because you cannot save something here and to save

85
00:06:19,170 --> 00:06:24,150
a code or to really write a program, we must use a text editor.

86
00:06:24,150 --> 00:06:28,920
And for this, we will use Jupyter Notebook and also these two.

87
00:06:29,880 --> 00:06:35,700
So let's get started with the actual coding, and in the next lecture, I want to explain to you how

88
00:06:35,700 --> 00:06:37,200
to use Jupyter Notebook.

