forked from MahaKhudhair/PythonChallenge-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlistf.py
More file actions
27 lines (20 loc) · 666 Bytes
/
Copy pathlistf.py
File metadata and controls
27 lines (20 loc) · 666 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
25
26
27
from typing import List, Union
l1 = ['Iraq', 'Japan', 'Australia', 'Egypt', 'Turkey']
l2 = ['Sydney', 'Istanbul', 'Tokyo', 'Baghdad', 'Cairo']
final =[]
L1 = 0
L2= 0
while L1 in l1 and L2 in l2 :
if L1 == 'Iraq' and L2 == 'Baghdad':
final.append([l1, l2])
elif L1 == 'Japan' and L2 == 'Tokyo':
final.append([l1, l2])
elif L1 == 'Australia' and L2 == 'Sydney':
final.append([l1, l2])
elif L1 == 'Egypt' and L2 == 'Cairo':
final.append([L1, L2])
elif L1 == 'Turkey' and L2 == 'Istanbul':
final.append([L1, L2])
print(final)
L1 += 1
L2 += 1