Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Frozenset

# tuple of vowels
numbers = ('1', '2', '3', '4', '5')
set = frozenset(numbers)
print('The frozen set is:', set)
print('The empty frozen set is:', frozenset())

# frozensets are immutable
set.add('6')
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #Frozenset
ADD COMMENT
Topic
Name
6+1 =