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

  • 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.

主站蜘蛛池模板: 社旗县| 独山县| 红河县| 平果县| 玉山县| 新竹市| 昌吉市| 池州市| 太谷县| 石首市| 平陆县| 罗源县| 东兴市| 综艺| 永安市| 马山县| 宁都县| 苍梧县| 曲水县| 苏尼特左旗| 晋宁县| 定边县| 建昌县| 黄浦区| 南康市| 辰溪县| 阳东县| 西乡县| 石嘴山市| 广宗县| 军事| 景德镇市| 桐乡市| 交口县| 三明市| 灌南县| 葫芦岛市| 财经| 德昌县| 余江县| 故城县|