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

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
主站蜘蛛池模板: 阿拉善盟| 土默特左旗| 通化县| 丹阳市| 通道| 阳泉市| 天等县| 临邑县| 澎湖县| 景东| 岳阳县| 扬州市| 广宗县| 密云县| 荣昌县| 西华县| 韩城市| 阜阳市| 福建省| 阳原县| 丰县| 肥城市| 桦川县| 阜平县| 库车县| 连云港市| 景谷| 望都县| 凉山| 漯河市| 嘉峪关市| 廉江市| 丰原市| 彩票| 江陵县| 宽甸| 清水县| 军事| 清徐县| 融水| 玉门市|