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

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

主站蜘蛛池模板: 阿拉善盟| 封开县| 澄迈县| 南投市| 通道| 香格里拉县| 汝州市| 石城县| 垫江县| 双流县| 鱼台县| 平邑县| 怀远县| 扎鲁特旗| 隆子县| 江安县| 天长市| 桐梓县| 买车| 上林县| 聊城市| 鲜城| 贵溪市| 都江堰市| 余江县| 石棉县| 化德县| 通江县| 黄陵县| 大庆市| 衡阳市| 丰顺县| 霍州市| 芜湖市| 望江县| 黄浦区| 盱眙县| 聊城市| 常熟市| 呼玛县| 西乌珠穆沁旗|