Yong Cui
1 min readJun 5, 2020

--

Sure, John.

The dict constructor is how we can create a dict object. One way to use the constructor is to supply with a dictionary and some additional key-value pairs. In this case, d0 is the dictionary and unpacked d1 provides the key-value pairs.

--

--

Yong Cui
Yong Cui

Written by Yong Cui

Work at the nexus of biomedicine, data science & mobile dev. Author of Python How-to by Manning (https://www.manning.com/books/python-how-to).

No responses yet