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

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
主站蜘蛛池模板: 京山县| 荔浦县| 朝阳县| 兴安盟| 奉节县| 阿荣旗| 射洪县| 新平| 锡林郭勒盟| 永胜县| 鄂托克旗| 金华市| 涟源市| 尼木县| 库伦旗| 东阳市| 淳安县| 云阳县| 潼关县| 台北县| 手机| 运城市| 溧阳市| 济宁市| 武冈市| 卫辉市| 绥阳县| 赫章县| 淮阳县| 龙井市| 西青区| 白玉县| 芒康县| 邵阳市| 聊城市| 柳林县| 德保县| 磐石市| 财经| 长沙市| 囊谦县|