Python from Scratch


Welcome to the ninth lesson of the “Python From Scratch” series! In this lesson, we will be diving into one of the most powerful data structures in Python – dictionaries. Dictionaries allow us to store and retrieve data using key-value pairs, making them incredibly useful for a wide range of applications.

We will begin by exploring the basics of dictionaries, including how to create them, add and remove items, and access their values. We will also cover some of the more advanced features of dictionaries, such as how to iterate over them and how to use them in conjunction with other Python data structures.

Throughout this lesson, we will be building on the knowledge and skills that we have developed in previous lessons, so it is recommended that you have a solid understanding of Python fundamentals before diving into this one. However, even if you are new to Python, you should be able to follow along with the examples and exercises provided.

Overview about Our Python Lesson 9

Python Dictionaries Eight pages of summary in PDF format to start learning the Python language with a series of lessons that we will complete together to master the Python language

By the end of this lesson, you will have a solid understanding of how to use dictionaries in Python and how to incorporate them into your own programs. So, let’s get started!

Lesson Content

  • Python Dictionaries
    • Dictionary
    • Dictionary Items
    • Ordered or Unordered?
    • Changeable
    • Duplicates Not Allowed
    • Dictionary Length
    • Dictionary Items – Data Types
    • type()
    • The dict() Constructor
    • Python Collections (Arrays)
  • Access Items
    • Accessing Items
    • Get Keys
    • Get Values
    • Get Items
    • Check if Key Exists
  • Change Items
    • Change Values
    • Update Dictionary
  • Add Items
    • Adding Items
    • Update Dictionary
  • Remove Items
  • Loop Dictionaries
  • Copy Dictionaries
  • Nested Dictionaries
  • Python – Dictionaries Methods
  • Python – Dictionaries Exercises

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button