I've got a dictionary whose keys are country names, and its values are an object of the class
Country, which has several attributes (population, area, etc.). For example:
However, when I try to reach a country, I have to do
my_dict[country_name].attribute. I don't want a dictionary, I just want objects, so I can access them like
country_name.attribute. Can anyone help me in doing this?