I have these dictionaries :
x={2020: 40, 2019: 37, 2015: 22, 2016: 9, 2017: 1}
y={2016: 0.0500, 2017: 0.0500, 2019: 0.0527, 2020: 0.0550, 2015: 0.0636}
and I want to obtain something like this :
data={2016:{9,0.0500},2017:{9,0.0500},2019:{37,0.0527},2020:{40,0.0550},2015:{22,0.0636}}
I want to have dict value inside my dict instead of list because I saw a way to do a graph like I want with that type of data.
I have found no clues on how to do it on internet right now, if you can help me a bit, thank you.
Thank you very much !