Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

frozenset numbers in python

# A FROZENSET IN PYTHON IS A SET THAT CAN'T BE ULTERED
# THAT MEANS THAT YOU CAN NOT ADD ANY ELEMENT TO IT

#MAKE SURE TO WRITE frozenset()
frozenset_= frozenset({1 , "name" , True})
print(type(frozenset_)) # -- <class 'frozenset'>
 
PREVIOUS NEXT
Tagged: #frozenset #numbers #python
ADD COMMENT
Topic
Name
2+6 =