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

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
主站蜘蛛池模板: 荣昌县| 肥西县| 惠东县| 科尔| 邯郸市| 长武县| 芮城县| 北京市| 理塘县| 高要市| 温州市| 塔城市| 石棉县| 安福县| 栾城县| 易门县| 田阳县| 甘南县| 工布江达县| 天全县| 恭城| 南靖县| 巴楚县| 阿荣旗| 玉林市| 措勤县| 磐石市| 合川市| 庆城县| 周至县| 深水埗区| 台州市| 滕州市| 普格县| 尼勒克县| 昆明市| 平果县| 东源县| 嘉定区| 托克托县| 洛浦县|