Trying to understand which is better in python creating variables or using expressions
问题 One of the practices I have gotten into in Python from the beginning is to reduce the number of variables I create as compared to the number I would create when trying to do the same thing in SAS or Fortran for example here is some code I wrote tonight: def idMissingFilings(dEFilings,indexFilings): inBoth=set(indexFilings.keys()).intersection(dEFilings.keys()) missingFromDE=[] for each in inBoth: if len(dEFilings[each])<len(indexFilings[each]): dEtemp=[] for filing in dEFilings[each]: