Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Frozenset() for Dictionary

# random dictionary
animal = {"Dog": 20, "Cat": 23, "Leopard": 2, "Tiger":1}

set = frozenset(animal)
print('The frozen set is:', set)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #Dictionary
ADD COMMENT
Topic
Name
7+2 =