Let\'s assume I\'m creating a simple class to work similar to a C-style struct, to just hold data elements. I\'m trying to figure out how to search a list of objects for ob
Consider using a dictionary:
myDict = {} for i in range(20): myDict[i] = i * i print(5 in myDict)