Creating Dictionaries


/ Published in: Python
Save to your folder(s)

Any keyword arguments you pass to the dict constructor are added to the newly created dictionary before returning. Of course, you are limited to the keys that can be made into keyword arguments: valid Python variable names.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.