Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

are tuples in python mutable

>>> dum = ('1861-10-23', ['poetry', 'pretend-fight'])
>>> dee = ('1861-10-23', ['poetry', 'pretend-fight'])
>>> dum == dee
True
>>> dum is dee
False
>>> id(dum), id(dee)
(4313018120, 4312991048)
Source by radar.oreilly.com #
 
PREVIOUS NEXT
Tagged: #tuples #python #mutable
ADD COMMENT
Topic
Name
9+6 =