get the last number added from 0 to n python code example Example: last digit of array python >>> array = [0.0021, 0.12, 0.1224, 0.22] >>> array[-1] 0.22 >>>