how to print last digit of a list in python code example Example: last digit of array python >>> array = [0.0021, 0.12, 0.1224, 0.22] >>> array[-1] 0.22 >>>