Hey guys, I've looked over several Google results for basic explanations on
is / '=='
However, I don't think I quite understand enough to know what is the ideal operator for this.
mylist=[1,2,3] if type(mylist) == list: print 'yes'
or do I use
if type(mylise) is list: print 'yes'
I understand superficially that == tests value and is test identifier (in the memory?) but not sure I really understand what is the best solution here.