Python standard library: dict.copy and dict.fromkeys

Опубликовано: 28 Август 2019
на канале: Python and Pandas with Reuven Lerner
656
36

Want to create a dict? There are lots of ways to do that, and in this video I explore two lesser-known ones: dict.copy (which creates a copy of an existing dict) and dict.fromkeys (which creates a dict based on a sequence of keys).

In addition to these videos, I have an active blog and free, weekly "Better developers" mailing list; see more at https://lerner.co.il/ .

Subscribe to this channel, as I try to go through all of the Python standard library!