Data types: In this post, you will learn the four types of primitive data types, They are strings, integers, float, Boolean etc.,
Below is the video format of the post ????????, Have any doubts do check the video.
Python primitive data types ❓
There are four different types of data types they are;
Any value in between the ” ” or ‘ ‘ are called strings, below is an example of the strings.
eg: print(“Hello world”)
eg: print(“123” + “345”)
Any number values without a string inside the parenthesis are called integers or int.
Float is the decimal number, which will be something like this ????????????
eg: print(3.2 * 4.5)
You can use any operators like BODMAS, but remember any decimal value is called the float.
True or False is called boolean data type, you may notice that the letters start with only capital letters like True or False
Also Read: Variables in python full tutorial
Also Read: Swapping two variables in python