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

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
主站蜘蛛池模板: 镇宁| 仲巴县| 安庆市| 都匀市| 郧西县| 华安县| 桃园县| 新泰市| 泸水县| 伊宁县| 牙克石市| 南部县| 台南县| 桐梓县| 济阳县| 县级市| 兴化市| 麻江县| 广灵县| 东平县| 沈阳市| 离岛区| 基隆市| 邢台县| 卓资县| 安义县| 双城市| 新河县| 汝阳县| 曲松县| 瑞昌市| 琼结县| 连江县| 平果县| 留坝县| 禄劝| 河西区| 昔阳县| 通化市| 九龙城区| 金川县|