Top Categories
Python Tutorial - Dictionary Methods | fromkeys()
- Category:
- Sub Category:
In this Python Programming video tutorial you will learn about the fromkeys method. Dictionaries are the unordered collection of items. Using fromkeys method we can create dictionaries with keys from the iterables, that is nothing but we can create dictionaries using list, tuple, range function o
In this Python Programming video tutorial you will learn about the fromkeys method. Dictionaries are the unordered collection of items. Using fromkeys method we can create dictionaries with keys from the iterables, that is nothing but we can create dictionaries using list, tuple, range function or any other iterables, as we know iterables is nothing but anything that can be loop over. we can use fromkeys like this, fromkeys( iterable , value)