I think I have a pretty simple question but my google searches are giving me more information than I need. I think my terminology is not clear.
Let's say I'm making a dictionary to hold a datatype very specific to some filetype or data of interest. Let's say I have the following data in a file:
'keith' 100, 50, 'puppy' 'bill' 300, 32, 'cat'
This data is arbitrary, but I will create a dictionary keyed by the first column, and then the other entries will be stored in either a list or tuple. The first two entries of the list/tuple will be integers and the third will be a string. I want to mandate my program to only allow for this ordering to prevent bad input and also clarify to the user exactly how the data is stored. Bastically, I want to tell python "hey make a dictionary, with each value being a list/tuple of three object, and reserve space for two ints and a string. How do I do this?
Something like newtype=type(dict(str:list(int,int,str) )
I have no idea how to start this, although I imagine its very routine. Thanks.