WEBVTT

00:01.080 --> 00:02.920
Now let's go for the next lecture.

00:02.920 --> 00:06.560
And that is going to be data type in Python.

00:06.680 --> 00:07.040
Okay.

00:07.400 --> 00:09.480
Let's create a new file.

00:09.920 --> 00:12.080
Okay I also can create it like this.

00:12.440 --> 00:18.000
And let's use data data type dot p y.

00:18.440 --> 00:18.800
Okay.

00:19.440 --> 00:26.840
In Python or in a programming language data type is an important concept okay.

00:26.880 --> 00:34.320
Variables can store data of different types and different types can do different things.

00:34.560 --> 00:35.280
Okay.

00:35.320 --> 00:38.760
So let's go and see those all thing.

00:38.800 --> 00:41.680
Okay let me clear this.

00:42.000 --> 00:49.920
And here one of those types are text type okay.

00:49.960 --> 00:54.320
Text type uh is str or string.

00:54.320 --> 00:55.200
We call it a string.

00:55.240 --> 00:55.760
Okay.

00:55.800 --> 00:56.920
It is a text type.

00:57.440 --> 00:57.960
Okay.

00:57.960 --> 01:01.100
So I will tell you later with a little more example.

01:01.100 --> 01:05.140
So the next part or the second one is numeric types.

01:05.420 --> 01:09.060
Numeric types is like integer okay.

01:09.460 --> 01:13.740
Like float like a complex.

01:15.500 --> 01:19.780
And the next part is sequence sequence type.

01:20.060 --> 01:22.500
The sequence type is like list.

01:22.500 --> 01:29.020
And also we have tuple and we have range.

01:29.660 --> 01:34.300
And sorry we have mapping type.

01:34.340 --> 01:37.140
Mapping type is like dictionary okay.

01:37.940 --> 01:41.620
And we have Boolean.

01:42.740 --> 01:45.620
Boolean is like true and false and something like that.

01:46.100 --> 01:48.380
And also we have binary and a lot of things.

01:48.620 --> 01:54.860
And I think right now this is enough for now because through the course we are going to use these things

01:54.900 --> 01:55.340
a lot.

01:55.380 --> 01:56.220
Okay.

01:56.220 --> 02:00.950
So here we have a built in function.

02:01.070 --> 02:02.510
You may ask what is function?

02:02.510 --> 02:05.070
So don't ask it right now because later I will explain it.

02:05.110 --> 02:05.990
What is a function?

02:06.190 --> 02:09.430
Now just listen what I'm saying okay.

02:09.470 --> 02:14.350
We have a built in function that is called pipe okay.

02:14.390 --> 02:20.950
If you give something or name of a variable to this type function, it will print the type of that for

02:20.950 --> 02:21.230
you.

02:21.710 --> 02:23.950
So let's comment this.

02:24.230 --> 02:25.590
Also you may ask what is comment?

02:25.630 --> 02:26.470
Don't be worry.

02:26.510 --> 02:33.510
Comment is something or is is something that is not going to be executed while we are executing, while

02:33.510 --> 02:37.830
we're running the program.

02:37.990 --> 02:41.950
Now let's see here we have x.

02:41.990 --> 02:43.830
It is equal to 12 okay.

02:44.190 --> 02:45.910
Now let's print type of.

02:45.910 --> 02:52.190
This x print is also a built in function okay a function that is already provided with Python.

02:52.830 --> 02:58.350
Now let's use type of this x and save it.

02:59.230 --> 03:00.050
And I'm right here.

03:00.090 --> 03:03.530
Use Python and then data type.

03:03.570 --> 03:03.970
Okay.

03:08.330 --> 03:11.250
We have data type.

03:13.090 --> 03:14.490
Data type.

03:14.530 --> 03:14.970
Okay.

03:16.290 --> 03:20.170
Dot p y and not open file.

03:20.570 --> 03:22.610
File or directory.

03:22.650 --> 03:22.890
Okay.

03:22.890 --> 03:24.930
We are into the Python basics.

03:26.770 --> 03:27.810
Oh my God.

03:27.810 --> 03:31.170
Here is one of one thing that I have to tell you.

03:31.170 --> 03:32.610
And that is this one.

03:32.610 --> 03:32.850
Okay.

03:32.890 --> 03:38.850
While I created this, uh, file that is out of the Python basics and I cannot run it.

03:38.850 --> 03:39.370
Okay.

03:39.410 --> 03:42.170
So let's move it into the file.

03:43.050 --> 03:43.490
Move.

03:43.770 --> 03:44.210
Yes!

03:44.210 --> 03:44.890
Move it.

03:45.010 --> 03:47.290
Now it is here inside the file.

03:47.290 --> 03:50.610
And now if I execute this again, it will run it.

03:50.610 --> 03:51.170
Okay.

03:51.210 --> 03:53.930
Now you see, it's telling me that it is integer.

03:53.970 --> 03:54.370
Okay.

03:54.370 --> 03:55.490
This is integer.

03:56.090 --> 03:57.930
What if I change it to.

03:57.970 --> 03:58.210
Okay.

03:58.210 --> 04:00.100
Let's start with this.

04:00.140 --> 04:01.460
I want to change it to string.

04:01.860 --> 04:08.260
It's going to be like, um, hello world.

04:08.980 --> 04:11.060
Okay, now let's run it.

04:11.180 --> 04:13.140
And you see, it's giving me str.

04:13.180 --> 04:14.340
That means it is string.

04:14.860 --> 04:16.860
And also how about float.

04:17.060 --> 04:18.140
Let's go with float.

04:20.660 --> 04:21.020
Okay.

04:21.020 --> 04:24.540
This is a float type okay.

04:24.580 --> 04:27.220
And also we have complex list dictionary booleans.

04:27.420 --> 04:28.500
Let's go with booleans.

04:28.740 --> 04:29.100
Okay.

04:29.780 --> 04:30.900
Like true.

04:33.540 --> 04:34.020
Okay.

04:35.380 --> 04:40.500
And it's giving me bool means boolean.

04:40.540 --> 04:40.900
Okay.

04:41.180 --> 04:44.220
So here you see what are the data types.

04:44.460 --> 04:46.740
Some of the data types okay.

04:46.780 --> 04:49.820
And we are going to use it a lot through the course.

04:50.060 --> 04:54.220
And you will learn them through the course.

04:54.340 --> 04:55.180
Okay.

04:55.180 --> 04:58.860
So I will see you in the next lecture.
