I need to add an in statement, something along the list of list(vs) if type(vs, str)
d={'int':["unit", "bool"], 'timestamp':"pruct"}
{v: k
for k, vs in d.items()
for v in vs}
I need this output
{'unit': 'int', 'bool': 'int', 'pruct': 'timestamp'}
but I'm getting
{'unit': 'int',
'bool': 'int',
'p': 'timestamp',
'r': 'timestamp',
'u': 'timestamp',
'c': 'timestamp',
't': 'timestamp'}