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

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.

主站蜘蛛池模板: 永寿县| 汉沽区| 万盛区| 保亭| 崇阳县| 日照市| 老河口市| 马鞍山市| 榕江县| 桓台县| 沙河市| 安丘市| 铜陵市| 金乡县| 夏河县| 神池县| 六枝特区| 泾川县| 左云县| 英山县| 垣曲县| 罗城| 灵寿县| 民县| 连州市| 奉节县| 望城县| 瑞丽市| 东乌珠穆沁旗| 龙岩市| 桐庐县| 修文县| 兴安县| 景泰县| 凤翔县| 贵定县| 宁化县| 新巴尔虎右旗| 砚山县| 福安市| 汪清县|