In this tutorial I’m going to learn how to check any country alternative name using python. So follow this tutorial in this tutorial I have mentioned in very easy way.
Go to visual studio code and create one python file
cinfo.py
then install below package
pip install countryinfo
Next put below code
from countryinfo import CountryInfo
country = CountryInfo('India')
data = country.alt_spellings();
print(data)
Output:-
['IN', 'Bhārat', 'Republic of India', 'Bharat Ganrajya']