aboutsummaryrefslogtreecommitdiff
path: root/challenge-308/eric-cheung/python/ch-1.py
blob: e05d16d0b85d12e34de1a6b78168db91fb0d4d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
## Example 1
## arrStr_01 = ["perl", "weekly", "challenge"]
## arrStr_02 = ["raku", "weekly", "challenge"]

## Example 2
## arrStr_01 = ["perl", "raku", "python"]
## arrStr_02 = ["python", "java"]

## Example 3
arrStr_01 = ["guest", "contribution"]
arrStr_02 = ["fun", "weekly", "challenge"]

arrCommon = [strLoop for strLoop in arrStr_01 if strLoop in arrStr_02]

print (len(arrCommon))