aboutsummaryrefslogtreecommitdiff
path: root/challenge-219/eric-cheung/python/ch-1.py
blob: 13c7e710892118a3cd21f741311fe0b5c8f061e6 (plain)
1
2
3
4
5
6
7
## arrInputList = [-2, -1, 0, 3, 4]  ## Example 1
arrInputList = [5, -4, -1, 3, 6]  ## Example 2

arrOutputList = sorted([nElem * nElem for nElem in arrInputList])

print (arrOutputList)