forked from MahaKhudhair/PythonChallenge-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.py
More file actions
27 lines (19 loc) · 572 Bytes
/
Copy path1.py
File metadata and controls
27 lines (19 loc) · 572 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# coding: utf-8
# In[1]:
l1=['Iraq', 'Japan', 'Australia', 'Egypt', 'Turkey']
l2=['Sydney', 'Istanbul', 'Tokyo', 'Baghdad', 'Cairo']
l3=[]
for i in l1:
for k in l2:
if i=='Iraq' and k=='Baghdad':
l3.append([i, k])
elif i=='Japan' and k=='Tokyo':
l3.append([i, k])
elif i=='Australia' and k=='Sydney':
l3.append([i, k])
elif i=='Egypt' and k=='Cairo':
l3.append([i, k])
elif i=='Turkey' and k=='Istanbul':
l3.append([i, k])
print l3
# In[ ]: