Hi, welcome back.
In this lecture, we will understand the different data types and by some important data types are used
to classify one particular type of data.
But why is this important?
If you use a specific data type, you will determine what values you can assign to it and how you can
deal with such data type.
The first data time you will know is no vison will consider any number written without decimals as an
integer and any number written with decimal as a flow.
So integers as.
One hundred and five and one hundred and five point o is a float that a type like a mass, integers
in computer programming are whole numbers without decimal point and can be positive or negative, like
minus two, minus one zero one to an integer can be also known as end and bison.
So if we use the brain function of Python three as the following.
And runs this line of code, we will get minus two.
As the output of this line of code, if we want to assign this value to a variable, for example, called
mind.
As the following my article, Mine is to.
And balance is variable using Bison's the brain function, so Brent, my n output of this line of code
will be minus two.
We can also apply math using Python as the following and underscore means equal then minus between two,
parentheses minus two and printout and underscore math as the following.
Without both that, we get as 12.
OK, so integers can be used in many ways, whizzing by some programs, and as you continue the calls,
you will have a lot of opportunities to work with integers and apply what you will learn about this
data type.
The second that I Invisalign, which is also a number as flawed, that type of lot is real number contain
a decimal point.
And we can do math with float's as we do with integers if we want to brand the float to bind all print
2.0 and also for the float minus to point, all the output of the brain function is minus two points.
So we can also assign our float to a variable called my underscore float equal minus ten point two.
Then you can print my float variable by using print function as the following, print my float and you
get minus ten point two.
Now we will do math to float data type float underscore mass equal minus ten point five O plus twenty
point six.
So after we assign our valuable float underscore mass, we will brand this variable as the following,
using brain function to branched out float underscore May.
And we get ten point ten.
We can round it to two values after decimal points, the following.
Brent tweet to parentheses around between two parentheses followed underscore may as well.
Gave us the end function, but coma and to.
We will get 10.1.
Or ten point ten at this point, which of this lecture, I hope you enjoyed this lecture and get all
of that.
Thank thanks for being here.
See you next with.