1
00:00:00,120 --> 00:00:02,300
Hello and welcome to this video.

2
00:00:02,310 --> 00:00:09,300
In this video I'm going to briefly introduce you to the Python data type.

3
00:00:09,300 --> 00:00:14,320
Code a boolean which is also referred to as a ball.

4
00:00:14,520 --> 00:00:22,700
The boolean data type basically has two values which are true or false.

5
00:00:22,890 --> 00:00:31,890
When you're working with data in python there may be times you want to check the validity of certain

6
00:00:31,890 --> 00:00:41,550
conditions you can use the boolean data type to check if those conditions are true or false.

7
00:00:41,550 --> 00:00:50,120
I have got my command prompt so I'm going to access the python shell by typing in Python and then pressing

8
00:00:50,220 --> 00:00:53,630
enter and that should give me the python shell.

9
00:00:53,790 --> 00:00:59,910
If you are on a Mac you need to type in Python 3 on your terminal.

10
00:01:00,480 --> 00:01:08,490
So what I want to do I want to use a special method in Pt. on code the type that I can use to check

11
00:01:08,940 --> 00:01:12,750
what class a data type is.

12
00:01:12,780 --> 00:01:19,830
So to do that I just typing I'm not going to encloses in the print statement I'm just going to type

13
00:01:20,280 --> 00:01:23,240
the method inside that method.

14
00:01:23,250 --> 00:01:31,910
I can just type in true and press enter and that should return a class which is going to be a boon.

15
00:01:32,190 --> 00:01:38,430
You can see is giving me a ball which means it is a data type called a boolean.

16
00:01:38,430 --> 00:01:47,250
So if I do the same pi type and inside the parentheses are a false and press enter again they should

17
00:01:47,250 --> 00:01:55,480
give me the ball so you can use the type method to check what type of data you have.

18
00:01:55,500 --> 00:01:58,230
So that is it for this video in this video.

19
00:01:58,260 --> 00:02:05,290
I briefly introduced you to the boolean data type in Python.

20
00:02:05,310 --> 00:02:07,230
Thanks for watching and bye for now.
