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

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
主站蜘蛛池模板: 中方县| 津南区| 黔南| 重庆市| 芜湖市| 皮山县| 繁峙县| 吴江市| 彝良县| 田林县| 甘肃省| 郯城县| 平阴县| 江西省| 山东省| 汕尾市| 开封县| 夏河县| 龙海市| 桦南县| 扬州市| 云梦县| 大姚县| 鞍山市| 青川县| 昭通市| 大余县| 竹溪县| 南投县| 卢氏县| 开封市| 文山县| 柏乡县| 图木舒克市| 柳江县| 伊川县| 芜湖县| 永仁县| 重庆市| 乌海市| 亚东县|