aboutsummaryrefslogtreecommitdiff
path: root/challenge-244/eric-cheung/python/ch-1.py
blob: 0689b32341207baf7cedf39a0704ea88595b79ee (plain)
1
2
3
4
5
6
7
8
## arrNum = [8, 1, 2, 2, 3]  ## Example 1
## arrNum = [6, 5, 4, 8]  ## Example 2
arrNum = [2, 2, 2]  ## Example 3

arrOutput = [sum(nLoop < nNumLoop for nLoop in arrNum) for nNumLoop in arrNum]

print (arrOutput)