Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,170 --> 00:00:07,170
Now that you know what the dynamically typed programming language is, let's see what basic data types
2
00:00:07,170 --> 00:00:08,490
we have in Python.
3
00:00:09,150 --> 00:00:14,670
The type will be associated with the value stored in the variable at runtime.
4
00:00:14,850 --> 00:00:22,440
Will quickly discuss the main python data types and then our focus will go into more detail about each
5
00:00:22,440 --> 00:00:23,040
of them.
6
00:00:23,520 --> 00:00:26,700
These are all the python built in data types.
7
00:00:27,930 --> 00:00:37,860
Numbers which are integers or whole numbers in the floating point numbers, or simply floats booleans,
8
00:00:38,010 --> 00:00:43,170
which represent logical values indicating a true or false.
9
00:00:43,710 --> 00:00:47,130
In Python there are two boolean constants defined.
10
00:00:48,090 --> 00:00:48,630
True.
11
00:00:48,660 --> 00:00:53,010
Always written with uppercase D and false.
12
00:00:53,400 --> 00:00:55,710
Written with uppercase F.
13
00:00:56,190 --> 00:01:00,720
Most of the time, booleans are used to test different conditions.
14
00:01:04,050 --> 00:01:05,250
Let's see an example.
15
00:01:10,750 --> 00:01:14,920
Age equals 40 and the name equals then.
16
00:01:15,310 --> 00:01:16,720
And I'm printing.
17
00:01:17,480 --> 00:01:19,520
X equals equals 40.
18
00:01:20,960 --> 00:01:24,470
This statement will return a boolean value.
19
00:01:27,240 --> 00:01:32,790
It returned true or print x greater than 20.
20
00:01:35,320 --> 00:01:37,330
It returned true as well.
21
00:01:38,600 --> 00:01:40,340
Or print name.
22
00:01:40,340 --> 00:01:41,720
Equals equals.
23
00:01:42,140 --> 00:01:42,860
Andre.
24
00:01:44,320 --> 00:01:46,900
This statement will return false.
25
00:01:49,540 --> 00:01:53,200
And this one print lane of name.
26
00:01:55,380 --> 00:01:56,820
Not equals ten.
27
00:01:57,360 --> 00:02:04,950
I am testing if the length of the name variable is not equal to ten and it will return true.
28
00:02:07,710 --> 00:02:12,870
Note that in Python there is also another constant called none.
29
00:02:14,000 --> 00:02:21,680
This is frequently used to represent the absence of a value as when some arguments are not passed to
30
00:02:21,680 --> 00:02:27,920
a function, or when a function does not return something explicitly and returns none.
31
00:02:30,210 --> 00:02:33,450
Let's move to the next data type strings.
32
00:02:33,480 --> 00:02:38,850
Are ordered sequences of characters encoded using UTF eight.
33
00:02:39,810 --> 00:02:44,400
Lists are ordered mutable sequences of objects.
34
00:02:45,530 --> 00:02:53,990
To create a list, use the name of the list equals and the pair of square brackets and the square brackets.
35
00:02:53,990 --> 00:02:57,740
The elements of the list separated with commas.
36
00:02:58,940 --> 00:03:03,500
A list can contain any type of elements, a string.
37
00:03:04,590 --> 00:03:05,640
An integer.
38
00:03:06,630 --> 00:03:07,650
A float.
39
00:03:07,890 --> 00:03:09,270
A boolean value.
40
00:03:09,600 --> 00:03:11,280
Or another list.
41
00:03:22,430 --> 00:03:24,650
Another datatype is the table.
42
00:03:24,920 --> 00:03:29,750
Toppers are ordered immutable sequences of objects.
43
00:03:30,860 --> 00:03:36,590
By the way, an object whose internal state can be changed is mutable.
44
00:03:36,740 --> 00:03:43,850
On the other hand, immutability doesn't allow any change in the object once it has been created.
45
00:03:44,690 --> 00:03:45,710
Let's move on.
46
00:03:45,860 --> 00:03:50,930
Sex are mutable collections of unordered unique objects.
47
00:03:51,230 --> 00:03:58,320
And there are also frozen sex which are immutable collections of unordered unique objects.
48
00:03:58,340 --> 00:04:03,710
And finally, dictionaries are collections of unordered key value pairs.
49
00:04:04,340 --> 00:04:09,080
We've seen the main data types of Python core programming language.
50
00:04:09,080 --> 00:04:15,140
In the next lectures, we'll take a closer look at each of them and discuss them in depth.
4335
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.