I need a data structure of this form:
test_id1: resultValue, timeChecked
test_id2: resultValue, timeChecked
test_id3: resultValue, timeChecked
test_id4: resultValue, timeChecked
...
up until now I have dealt with it by just using a dictionary with key value for the id and the result. But I would like to add the time I checked.
What would be the best way to do this? Can I make the value a tuple? Or is a new class better suited in this case?
What would my class need to look like to accommodate the above?
Yes, and I’m not really sure why you don’t want to. If it’s to make look-ups easier to read, you can even make the value another dictionary.
or
I think a whole new class is overkill for this situation.