aboutsummaryrefslogtreecommitdiff
path: root/challenge-184/eric-cheung/python/ch-1.py
blob: 754ad3d82ba16171ef90496de2e3c0e0aa5d7e5d (plain)
1
2
3
4
5
6
7
## arrInputList = ['ab1234', 'cd5678', 'ef1342']  ## Example 1
arrInputList = ['pq1122', 'rs3334']  ## Example 2

arrOuputList = [('0' + str(nIndx) if nIndx < 10 else str(nIndx)) + arrLoop[2:] for nIndx, arrLoop in enumerate(arrInputList)]

print (arrOuputList)