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

  • The Python Workshop
  • Andrew Bird Dr Lau Cher Han Mario Corchero Jiménez Graham Lee Corey Wade
  • 181字
  • 2021-06-11 12:51:29

Summary

To summarize, you need to remember that Python data structures include lists, tuples, dictionaries, and sets. Python provides these structures to enable you to code better as a developer. In this chapter, you have covered lists, which are one of the important data types in Python that store multiple objects, and also other data types, such as dictionaries, tuples, and sets. Each of these data types helps us to store and retrieve data effectively.

Data structures are an essential part of all programming languages. Most programming languages only provide basic data types to store different types of numbers, strings, and Booleans, as you learned in Chapter 1, Vital Python - Math, Strings, Conditionals, and Loops. They are an essential part of any program. In this chapter, you learned how to utilize advanced data structures such as nested lists and mixed data types, and lists with dictionaries — structures that you can use to store complex data.

Next up, we are going to learn how to use functions to write modular and understandable code that follows the DRY (Don't Repeat Yourself) principle.

主站蜘蛛池模板: 沭阳县| 杨浦区| 武冈市| 拜城县| 九龙坡区| 漳平市| 四子王旗| 江口县| 克山县| 南岸区| 晴隆县| 南宫市| 南安市| 剑河县| 扎囊县| 蒙自县| 陈巴尔虎旗| 边坝县| 伽师县| 巴青县| 江川县| 沅陵县| 汶川县| 竹溪县| 丹棱县| 舞阳县| 龙岩市| 林州市| 张家界市| 商水县| 嘉定区| 中卫市| 盐池县| 满洲里市| 财经| 安仁县| 博兴县| 抚松县| 都安| 项城市| 峨边|