filmov
tv
Data Type in python - Introduction to Boolean Data Type in python
Показать описание
Boolean Data Type in Python
Data Type in python - Introduction to Boolean Data Type in python
Ok, when we come to Boolean data type in python
Booleans are one of the 4 basic data types we need to know.
So,
Any data, having logical information’s or true or false answers are considered as Boolean data type.
For example
If you get the questions like marriage states
The answer is yes or no
Or
True or false
So, those types of data’s are Boolean data types.
And if you create a variable and save those types of information’s in python you need to write
True or false.
And when you write true
T is capital
And
When you write
False
F is capital latter
This is a convention
Or
it is python syntax for creating and saving Boolean data types in python programing language.
Ok, now we can check it by opening PyCharm Python IDE and creating new variables.
So
The first is I create a variable
Marriage
=
And I write
False
Like this and
I write
Print()
Type()
And pass the mirage variable inside this parentheses.
And
When I run this
As you see it shows
Class
Bool
That means a Boolean data type.
Or
We can also see other examples like
Like test results
pass or fail in any class
For example I create a variable
Test_pass
And
= True
Like this and
If you check the variable type
Of this test pass
By writing
Print()
Type()
Test_Pass
Inside this type parentheses
And at the end I run this
Python file and
It says Bool.
Like the previous one
So,
And data which have a value true or false is a Boolean data type in python programing language.
Ok, for more understanding you can also try by creating different variables and giving a value true or false.
So, this is all about this video
I think you get some concepts about what are Boolean data types and how to create them on python.
Thanks for watching
I will see you in the next video
Thanks again.
#learntocode
#datatypesinpython
#pythontutorial
Data Type in python - Introduction to Boolean Data Type in python
Ok, when we come to Boolean data type in python
Booleans are one of the 4 basic data types we need to know.
So,
Any data, having logical information’s or true or false answers are considered as Boolean data type.
For example
If you get the questions like marriage states
The answer is yes or no
Or
True or false
So, those types of data’s are Boolean data types.
And if you create a variable and save those types of information’s in python you need to write
True or false.
And when you write true
T is capital
And
When you write
False
F is capital latter
This is a convention
Or
it is python syntax for creating and saving Boolean data types in python programing language.
Ok, now we can check it by opening PyCharm Python IDE and creating new variables.
So
The first is I create a variable
Marriage
=
And I write
False
Like this and
I write
Print()
Type()
And pass the mirage variable inside this parentheses.
And
When I run this
As you see it shows
Class
Bool
That means a Boolean data type.
Or
We can also see other examples like
Like test results
pass or fail in any class
For example I create a variable
Test_pass
And
= True
Like this and
If you check the variable type
Of this test pass
By writing
Print()
Type()
Test_Pass
Inside this type parentheses
And at the end I run this
Python file and
It says Bool.
Like the previous one
So,
And data which have a value true or false is a Boolean data type in python programing language.
Ok, for more understanding you can also try by creating different variables and giving a value true or false.
So, this is all about this video
I think you get some concepts about what are Boolean data types and how to create them on python.
Thanks for watching
I will see you in the next video
Thanks again.
#learntocode
#datatypesinpython
#pythontutorial
Комментарии