Idiomatic Python: Merging Dictionaries

Поделиться
HTML-код
  • Опубликовано: 13 сен 2024
  • In this video we take a look at the pythonic way of merging multiple dictionaries. One way involving creating a new dictionary, and another way without creating a new dictionary using a ChainMap.
    #mathbyteacademy #python
    Code for this Video
    ===================
    Available in GitHub blog repo: github.com/fba...
    Direct link: tinyurl.com/4k...
    My Python Courses
    =================
    - Python 3 Fundamentals (introduction to Python)
    www.udemy.com/...
    - Python 3 Deep Dive (Part 1 - Functional)
    www.udemy.com/...
    - Python 3 Deep Dive (Part 2 - Iteration, Generators)
    www.udemy.com/...
    - Python 3 Deep Dive (Part 3 - Hash Maps)
    www.udemy.com/...
    - Python 3 Deep Dive (Part 4 - OOP)
    www.udemy.com/...

Комментарии • 13

  • @t_12delay
    @t_12delay 10 месяцев назад

    following your Deep dive on python part 1 atm and your one of the first that i have an easy time following along with, love that you break down and explain everything you do in those videos its very helpful for someone like me and id assume many others who are slower at getting the hang of things haha

    • @mathbyteacademy
      @mathbyteacademy  10 месяцев назад

      Thanks, glad you are finding the course useful!

  • @5ihdi
    @5ihdi 10 месяцев назад +3

    Just reminder: we are still waiting for solid FastAPI course on Udemy :) It would be great if the course contains also asyncio

    • @iamnoonewhoareu
      @iamnoonewhoareu 10 месяцев назад

      I think if this channel becomes popular, Fred will be more motivated to create new course(s)

    • @mathbyteacademy
      @mathbyteacademy  10 месяцев назад

      😀 I have started work on a Pydantic course. Not quite FastAPI yet, but Pydantic is an integral part of FastAPI so I am going to start there.

    • @5ihdi
      @5ihdi 10 месяцев назад

      @@mathbyteacademy that's the good news :)

  • @MaxShapira2real
    @MaxShapira2real 10 месяцев назад

    Thanks, Fred. Two things:
    1. Another way to combine dictionaries (creates a copy): settings = default_settings | user_settings | env_vars
    2. Could you put together a course on asyncio? I haven't come across a good course that explains asynchronous programming in Python. And there's no one better qualified than you to do it.

  • @amirsohail2368
    @amirsohail2368 10 месяцев назад

    I love your all courses on udemy plus here as well, can you please also make courses on Data Engineering

    • @mathbyteacademy
      @mathbyteacademy  10 месяцев назад

      Thanks, glad you like them. And thanks for the suggestion - by data engineering I assume you mean data ingestion and transformations? (like DBT for example?)

  • @user-iy6tz3ei9s
    @user-iy6tz3ei9s 10 месяцев назад

    Hopefully you create a course on deep dive django?