Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
0
1
00:00:00,650 --> 00:00:04,490
Learning python is about learning three things.
1
2
00:00:04,490 --> 00:00:07,060
The first is the syntax of Python.
2
3
00:00:07,130 --> 00:00:14,270
You know the syntax when you know that for example to create a list you should use square brackets and
3
4
00:00:14,270 --> 00:00:21,840
the list items are divided by commas, and you know that to call a function such as the sum function
4
5
00:00:22,140 --> 00:00:25,650
you need to use this round parentheses and so on.
5
6
00:00:25,650 --> 00:00:31,770
The second thing is to know the proper data structure for your particular scenario.
6
7
00:00:31,770 --> 00:00:37,200
For example you wanted to calculate student grades.
What is the best data structure?
7
8
00:00:37,200 --> 00:00:39,930
Is it a list or is it a dictionary?
8
9
00:00:39,930 --> 00:00:44,590
A dictionary is another type that I'm going to explain in the next lecture.
9
10
00:00:44,700 --> 00:00:48,480
So you should use the proper data structure to store your data.
10
11
00:00:48,610 --> 00:00:55,550
The third thing is you should know the algorithms.
So to calculate the mean what do you need?
11
12
00:00:55,560 --> 00:00:57,450
This is a very simple algorithm.
12
13
00:00:57,600 --> 00:01:03,600
And in the beginning you'll have a hard time finding the proper functions, what to use for the sum,
13
14
00:01:03,600 --> 00:01:09,770
what to use to count the objects of an array of for list for example.
14
15
00:01:09,870 --> 00:01:15,330
But I showed you how to check for that using the dir and the help function.
15
16
00:01:15,360 --> 00:01:16,720
That's pretty much it.
16
17
00:01:16,740 --> 00:01:23,570
It's a slow process but you have to be patient and with time you'll be very surprised how good you're
17
18
00:01:23,580 --> 00:01:25,390
going to get.
1930
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.