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

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
主站蜘蛛池模板: 南华县| 武宁县| 云浮市| 武夷山市| 边坝县| 宜章县| 荥阳市| 来凤县| 射阳县| 巩义市| 共和县| 枣庄市| 长垣县| 甘孜县| 九江县| 当雄县| 克拉玛依市| 镇原县| 边坝县| 南丹县| 晴隆县| 十堰市| 开江县| 县级市| 金川县| 武清区| 靖远县| 益阳市| 雷山县| 阜城县| 正蓝旗| 清新县| 凌海市| 芦山县| 木兰县| 丹江口市| 宁德市| 鲁甸县| 上林县| 天等县| 太谷县|