from countryinfo import CountryInfo country = CountryInfo(input("Enter Country Name:")) print("Country Name",country.name()) print("Capital:",country.capital()) print("Population:",country.population()) print("Area",country.area()) print("Region:",country.region()) print("Subregion:",country.subregion()) print("Demonym:",country.demonym()) print("Currency",country.currencies()) print("Languages:",country.languages()) print("Borders:",country.borders())
Enter Country Name:China
Country Name china
Capital: Beijing
Population: 1367110000
Area 9640011
Region: Asia
Subregion: Eastern Asia
Demonym: Chinese
Currency ['CNY']
Languages: ['zh']
Borders: ['AFG', 'BTN', 'MMR', 'HKG', 'IND', 'KAZ', 'PRK', 'KGZ', 'LAO', 'MAC', 'MNG', 'PAK', 'RUS', 'TJK', 'VNM']