官术网_书友最值得收藏!

  • Learn Python in 7 Days
  • Mohit Bhaskar N. Das
  • 156字
  • 2021-07-09 20:40:23

Data types in Python

What is a data type in any programming language? Let's try to understand with a real life problem. We use water, oil, liquid soap, syrups, and so on in our day to day life. How do you categorize these items? Let's take another set of examples of bar soap, cell phone, and so on; what classification would you like to give these items? Answer to all these questions is simple: solid, liquid, and gases. Yes, we have these three broader classifications for any item that we have heard about or used in our day to day life. Same is the case in the programming world. Each and every thing needs to be categorized under different types. There are many types of data, such as numbers, strings, character, images, and so on.

Data types can be broadly categorized into five different types, listed as follows:

  • Numbers
  • String
  • Tuples
  • List
  • Dictionary
主站蜘蛛池模板: 家居| 甘孜县| 长宁县| 静乐县| 南川市| 平邑县| 咸阳市| 明光市| 晋中市| 麻栗坡县| 桓仁| 怀来县| 枣庄市| 抚州市| 外汇| 三原县| 勃利县| 临泽县| 新野县| 洛川县| 南通市| 新干县| 新民市| 磐石市| 天台县| 土默特左旗| 德格县| 闻喜县| 白沙| 万荣县| 新泰市| 临安市| 镇宁| 普陀区| 卢湾区| 集贤县| 宜宾县| 黄梅县| 北流市| 浮山县| 东宁县|