Food is called as data types now why it's important because we have worked with variables, right? Everything was working. Now when you work on a project, it's very important to understand. What about data you're working with so that you can process that data in that format. Because if you don't possess the data in that particular format, you might face errors or maybe bugs and trust me bugs are horrifying. So what we did is we have here. So, let me just needs I think the other first one is None second one is numeric. The third one we have is least double set string range and map or you can call it has dictionary. Now this time with the first one. The first one is none know what it means. Now when you have a variable and if that variable is not assigned with any value it is it is none normally in other languages. We use a keyword as null but in Python we use none. The second one is numeric type. Now if we talk about pneumatic, we have multiple types here. In fact, we can go with for the first one is ain't then we have float when we have complex and we have bull. So they talk about numeric. It works numbers right example when I say num is equal to 2.5 now, this is float. Okay. So float value now, how do we know that? This is float. In fact in the last session we have done that right so we can use a type as a function and in this you can pass numb and you can see it says plus float again we talked about Slater okay what class? It's but I mean, it's a float. Okay, so now I will say another number also num is equal to 5, of course, we can change the type of variable. Right? So now if I assign five if I say num and you can see the class now changed to 8 that means the type of this num is a we also have complex right now what complex mean so if I will say num is equal to now if you remember mathematics we have used to have this concept of complex numbers right now. How do we represent complex number?
Food is called as data types now why it's important because we have worked with variables, right? Everything was working. Now when you work on a project, it's very important to understand. What about data you're working with so that you can process that data in that format. Because if you don't possess the data in that particular format, you might face errors or maybe bugs and trust me bugs are horrifying. So what we did is we have here. So, let me just needs I think the other first one is None second one is numeric. The third one we have is least double set string range and map or you can call it has dictionary. Now this time with the first one. The first one is none know what it means. Now when you have a variable and if that variable is not assigned with any value it is it is none normally in other languages. We use a keyword as null but in Python we use none. The second one is numeric type. Now if we talk about pneumatic, we have multiple types here. In fact, we can go with for the first one is ain't then we have float when we have complex and we have bull. So they talk about numeric. It works numbers right example when I say num is equal to 2.5 now, this is float. Okay. So float value now, how do we know that? This is float. In fact in the last session we have done that right so we can use a type as a function and in this you can pass numb and you can see it says plus float again we talked about Slater okay what class? It's but I mean, it's a float. Okay, so now I will say another number also num is equal to 5, of course, we can change the type of variable. Right? So now if I assign five if I say num and you can see the class now changed to 8 that means the type of this num is a we also have complex right now what complex mean so if I will say num is equal to now if you remember mathematics we have used to have this concept of complex numbers right now. How do we represent complex number?
Comments
Post a Comment