The concept of data type exists in any programming language. The simple understanding of it is that any variable stores data of any type. For example, integer number, decimal number, text etc.
While using python, different types of data is known as data type.
Data types (int, float, str, boolian)
X = 6 contains an integer number is known as data type int
X = 6.5 contains a number with decimal is known as data type float
X = contains text 'Today is a great day' is known as data type string str
X = True contains close ended decisive data yes/no is known as data type bool
No comments:
Post a Comment