iso-3166

How to convert country names to ISO 3166-1 alpha-2 values, using python

How to convert country names to ISO 3166-1 alpha-2 values, using python Question: I have a list of countries like: countries=[‘American Samoa’, ‘Canada’, ‘France’…] I want to convert them like this: countries=[‘AS’, ‘CA’, ‘FR’…] Is there any module or any way to convert them? Asked By: MHS || Source Answers: You can use this csv …

Total answers: 11