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

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.

主站蜘蛛池模板: 太仆寺旗| 夹江县| 枣庄市| 泽库县| 玉溪市| 紫金县| 天台县| 平谷区| 兴仁县| 吉安县| 清水河县| 平安县| 喜德县| 荥经县| 临西县| 德阳市| 大丰市| 南川市| 图们市| 葵青区| 溆浦县| 潼关县| 彰化县| 彩票| 朝阳县| 蛟河市| 株洲市| 加查县| 运城市| 鄂托克前旗| 石家庄市| 长沙市| 邹平县| 乌恰县| 昌平区| 遵义县| 应城市| 建始县| 临泉县| 南丰县| 海门市|