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
then install below package
pip install countryinfo
Next put below code
from countryinfo import CountryInfo country = CountryInfo('India') data = country.alt_spellings(); print(data)
['IN', 'Bhārat', 'Republic of India', 'Bharat Ganrajya']