-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcountry_info1.py
46 lines (30 loc) · 1.26 KB
/
country_info1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# importing the module
from countryinfo import CountryInfo
# taking country name as input
count= input("Enter your country : ")
# passing input in countryinfo module
country= CountryInfo(count)
# printing the capital of the country
print("\nCapital is :",country.capital())
# printing the currency of the country
print("\nCurrencies is :",country.currencies())
# printing the languages used in country
print("\nLanguage is :",country.languages())
# printing names of other country sharing its border with the Country.
print("\nBorders are :",country.borders())
# printing alternative names of country
print("\nOther names :",country.alt_spellings())
# printing the area of the country
print("\nArea is :",country.area(),"Km²")
# printing the population of the country
print("\nPopulation is :",country.population())
# printing the calling code of the country
print("\nCalling code is :",country.calling_codes())
# printing the timezone of the country
print("\nTimezone is :",country.timezones())
# printing the Native name of the country
print("\nNative name is :",country.native_name())
# printing the Provinces of the country
print("\nProvinces are :",country.provinces())
# printing the wikipedia link of the country
print("\nWikipedia Link :",country.wiki())