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

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.

主站蜘蛛池模板: 洛扎县| 黄石市| 嵩明县| 淮安市| 额敏县| 日照市| 大厂| 麻栗坡县| 兴国县| 湾仔区| 怀仁县| 丹江口市| 东丽区| 中牟县| 红原县| 客服| 鹿邑县| 镇雄县| 永吉县| 梅州市| 麟游县| 曲阳县| 鸡西市| 曲阜市| 桐梓县| 天台县| 芜湖县| 扎兰屯市| 潞城市| 沧州市| 大城县| 昭苏县| 信宜市| 尤溪县| 晋州市| 千阳县| 东明县| 兴化市| 北川| 隆昌县| 荥经县|