Function to return results in a dictionary in Python

I do not think you want a “dictionary”. Dictionaries can only have 1 key and 1 definition. However if you use pandas and a data-frame you can store all of these.

https://www.tutorialspoint.com/python_pandas/python_pandas_dataframe.htm

Leave a Comment