Skip to content

Commit 59ae63f

Browse files
authored
Add files via upload
1 parent 3e283c8 commit 59ae63f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from countryinfo import CountryInfo
2+
3+
count = input('Enter the name of the country or -1 to quit: ')
4+
5+
while count != '-1':
6+
country = CountryInfo(count)
7+
8+
print("Capital is: ", country.capital())
9+
print('----------------------------------------------------------------')
10+
print('Currency is: ', country.currencies())
11+
print('----------------------------------------------------------------')
12+
print('Language is: ', country.languages())
13+
print('----------------------------------------------------------------')
14+
print('Borders are: ', country.borders())
15+
print('----------------------------------------------------------------')
16+
print('Other names are: ', country.alt_spellings())
17+
print('----------------------------------------------------------------')
18+
print('Population is: ', country.population())
19+
print('----------------------------------------------------------------')
20+
print('Time zone is: ',country.timezones())
21+
print('----------------------------------------------------------------')
22+
count = input('Enter the name of the country or -1 to quit: ')
23+
print('----------------------------------------------------------------')
24+
else:
25+
print('Thanks for using the program...')

0 commit comments

Comments
 (0)