-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.py
240 lines (231 loc) · 7.4 KB
/
data.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Filename: data.py
# The Quiz of Country and Their Capital
# University of Djillali Liabes (UDL) - Sidi Bel Abbes
# Faculty of Sciences - Computer Science (LMD1) 2011/2012
# Student: Boubakr NOUR <[email protected]>
# License: Academic Free License (AFL)
# Source des capitales: http://www.newworldencyclopedia.org/entry/list_of_countries_by_continent
class Continent:
"""
Class contains all the countries and their capitals and a help.
"""
# Africa = 54 countries
africa = [
['algeria', 'algiers'],
['angola', 'luanda'],
['benin', 'porto-novo', 'seat of government at cotonou'],
['botswana', 'gaborone'],
['burkina faso', 'ouagadougou'],
['burundi', 'bujumbura'],
['cameroon', 'yaounde'],
['cape verde', 'praia'],
['central african republic', 'bangui'],
['chad', "n'djamena"],
['comoros', 'moroni'],
['democratic republic of congo', 'kinshasa'],
['republic of congo', 'brazzaville'],
["cote d'ivoire", 'yamoussoukro', 'seat of government at abidjan'],
['djibouti', 'djibouti'],
['egypt', 'cairo'],
['equatorial guinea', 'malabo'],
['eritrea', 'asmara'],
['ethiopia', 'addis ababa'],
['gabon', 'libreville'],
['gambia', 'banjul'],
['ghana', 'accra'],
['guinea', 'conakry'],
['guinea-bissau', 'bissau'],
['kenya', 'nairobi'],
['lesotho', 'maseru'],
['liberia', 'monrovia'],
['libya', 'tripoli'],
['madagascar', 'antananarivo'],
['malawi', 'lilongwe'],
['mali', 'bamako'],
['mauritania', 'nouakchott'],
['mauritius', 'port louis'],
['morocco', 'rabat'],
['mozambique', 'maputo'],
['namibia', 'windhoek'],
['niger', 'niamey'],
['nigeria', 'abuja'],
['rwanda', 'kigali'],
['sao tome and principe', 'sao tome'],
['senegal', 'dakar'],
['seychelles', 'victoria'],
['sierra leone', 'freetown'],
['somalia', 'mogadishu'],
['south africa', 'pretoria', 'cape town (legislative), bloemfontein (judicial'],
['sudan', 'khartoum'],
['swaziland', 'mbabane', 'lobamba (royal and legislative)'],
['tanzania', 'dodoma', 'seat of government at dar es salaam'],
['togo', 'lome'],
['tunisia', 'tunis'],
['uganda', 'kampala'],
['western sahara', 'el aaiun'],
['zambia', 'lusaka'],
['zimbabwe', 'harare']
]
# America = 35 countires
america = [
['antigua and barbuda', "saint john's"],
['bahamas', 'nassau'],
['barbados', 'bridgetown'],
['belize', 'belmopan'],
['canada', 'ottawa'],
['costa rica', 'san jose'],
['cuba', 'havana'],
['dominica', 'roseau'],
['dominican republic', 'santo domingo'],
['el salvador', 'san salvador'],
['grenada', "saint george's"],
['guatemala', 'guatemala'],
['haiti', 'port-au-prince'],
['honduras', 'tegucigalpa'],
['jamaica', 'kingston'],
['mexico', 'mexico'],
['nicaragua', 'managua'],
['panama', 'panama'],
['saint kitts and nevis', 'basseterre'],
['saint lucia', 'castries'],
['saint vincent and the grenadines', 'kingstown'],
['trinidad and tobago', 'port of spain'],
['united states', 'washington'],
['argentina', 'buenos aires'],
['bolivia', 'sucre', 'seat of government at la paz'],
['brazil', 'brasilia'],
['chile', 'santiago'],
['colombia', 'bogota'],
['ecuador', 'quito'],
['guyana', 'georgetown'],
['paraguay', 'asuncion'],
['peru', 'lima'],
['suriname', 'paramaribo'],
['uruguay', 'montevideo'],
['venezuela', 'caracas']
]
# Asia = 48 countries
asia = [
['afghanistan', 'kabul'],
['armenia', 'yerevan'],
['azerbaijan', 'baku'],
['bahrain', 'manama'],
['bangladesh', 'dhaka'],
['bhutan', 'thimphu'],
['brunei', 'bandar seri begawan'],
['cambodia', 'phnom penh'],
['china', 'beijing'],
['taiwan', 'taipei'],
['cyprus', 'nicosia'],
['georgia', 'tbilisi'],
['india', 'new delhi'],
['indonesia', 'jakarta'],
['iran', 'tehran'],
['iraq', 'baghdad'],
['japan', 'tokyo'],
['jordan', 'amman'],
['kazakhstan', 'astana'],
['north korea', 'pyongyang'],
['south korea', 'seoul'],
['kuwait', 'kuwait'],
['kyrgyzstan', 'bishkek'],
['laos', 'vientiane'],
['lebanon', 'beirut'],
['malaysia', 'kuala lumpur'],
['maldives', 'male'],
['mongolia', 'ulaanbaatar'],
['myanmar (Burma)', 'naypyidaw'],
['nepal', 'kathmandu'],
['oman', 'muscat'],
['pakistan', 'islamabad'],
['palestine', 'quads'],
['philippines', 'manila'],
['qatar', 'doha'],
['saudi arabia', 'riyadh'],
['singapore', 'singapore'],
['sri lanka', 'sri jayewardenepura kotte'],
['syria', 'damascus'],
['tajikistan', 'dushanbe'],
['thailand', 'bangkok'],
['timor-leste (east timor)', 'dili'],
['turkey', 'ankara'],
['turkmenistan', 'ashgabat'],
['united arab emirates', 'abu dhabi'],
['uzbekistan', 'tashkent'],
['vietnam', 'hanoi'],
[' yemen', "sana'a"]
]
# Europe = 45 Countries
europe = [
['albania', 'tirana'],
['andorra', 'andorra la vella'],
['austria', 'vienna'],
['belarus', 'minsk'],
['belgium', 'brussels'],
['bosnia and herzegovina', 'sarajevo'],
['bulgaria', 'sofia'],
['croatia', 'zagreb'],
['czech republic', 'prague'],
['denmark', 'copenhagen'],
['estonia', 'tallinn'],
['finland', 'helsinki'],
['france', 'paris'],
['germany', 'berlin'],
['greece', 'athens'],
['hungary', 'budapest'],
['iceland', 'reykjavík'],
['ireland', 'dublin'],
['italy', 'rome'],
['kosovo', 'pristina'],
['latvia', 'riga'],
['liechtenstein', 'vaduz'],
['lithuania', 'vilnius'],
['luxembourg', 'luxembourg'],
['former yugoslav republic of macedonia', 'skopje'],
['malta', 'valletta'],
['moldova', 'chisinau'],
['monaco', 'monaco'],
['montenegro', 'podgorica'],
['netherlands', 'amsterdam', 'seat of government at the hague'],
['norway', 'oslo'],
['poland', 'warsaw'],
['portugal', 'lisbon'],
['romania', 'bucharest'],
['russia', 'moscow'],
['san marino', 'san marino'],
['serbia', 'belgrade'],
['slovakia', 'bratislava'],
['slovenia', 'ljubljana'],
['spain', 'madrid'],
['sweden', 'stockholm'],
['switzerland', 'berne'],
['ukraine', 'kiev'],
['united kingdom', 'london'],
['vatican city', 'vatican']
]
# Oceania = 15 countries
oceania = [
['australia', 'canberra'],
['fiji', 'suva'],
['kiribati', 'south tarawa'],
['marshall islands', 'majuro'],
['micronesia', 'palikir'],
['nauru', 'yaren'],
['new zealand', 'wellington'],
['palau', 'melekeok'],
['papua new guinea', 'port moresby'],
['samoa', 'apia'],
['solomon islands', 'honiara'],
['tongo', "nuku'alofa"],
['tuvalu', 'funafuti'],
['vanuatu', 'port vila']
]
world = [] # An empty list will extend all continents
world.extend(africa)
world.extend(america)
world.extend(asia)
world.extend(europe)
world.extend(oceania)
# EOF