Python 3 dict() built-in function TUTORIAL

preview_player
Показать описание
Tutorial on how to use the dict() or dictionary built-in function from the Python 3 Standard Library.

Examples using keyword arguments (kwargs), mappings, and iterables (lists and zips).

📖 You can check out the Udemy course (Python Built-in Functions) here:

Built-in Functions Playlist:

Documentation:

⚙️ Recommended Computer Gear:

✈️ Recommended Digital Nomad Gear:
Рекомендации по теме
Комментарии
Автор

dict() is a class, not function. I wrote in my new project: "print(dict); print(dict(example=dict))" in command line written: "<class 'dict'>", "{'example': <class 'dict'>}". Also, if I wrote "print(dict(range(4)))", in command line error occurs: "TypeError: cannot convert dictionary update sequence element #0 to a sequence".

vladumnik
Автор

1:52
Those are rather tupes, aren't they?

pycat