Data Types In Python | Complete Python
Data Notebook
Hey guys, welcome to the video. In today’s video we are going to learn about all the data types that are there in Python language.
First of all we will be learning that what are datatypes and why are they used. So the formal definition of datatypes says “Data types in Python are a way to classify data items. They represent the kind of value, which determines what operations can be performed on that data. Since everything is an object in Python programming, Python data types are classes and variables are instances (objects) of these classes.”. For example int is a datatype which is a class and when we create a variable such as x then it is an object of class integer. For identifying the class of an object we use a function that is type function. And it gives the output that is the class name or datatype. And the constant value which we store in the variable is called the literal. Now the question is that why is this classification? It is because when any variable is created then specific functions methods and operations work for those datatypes in such way. For example the addition operation works differently for int data type and string data type. When we apply addition operator on int objects it gives us the sum of both integers but when we apply the same operator on string data type it gives us the concatenation of both the strings that means it joins those two strings.
Hey guys, welcome to the video. In today's video we are going to learn about all the data types that are there in Python language, which is essential for any aspiring data scientist. This python tutorial covers the python basics, explaining what data types are and why they are used in programming. If you are learning python, understanding these fundamentals is crucial for effective python programming.