![]() Image 2 - Nested dictionary of employees (2) (image by author) The resulting data looks the same as what we had before: Here’s the code:Įmployee_emails = ", " "]Įmployees = dict(zip(employee_emails, employee_details)) This will assign appropriate key-value pairs. If you declare your data in this way, you can pass both to zip() and wrap everything inside a call to dict().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |