Oct-20-2020, 08:10 AM
You could wrap your split-off string in a reversed(), or you could iterate over it backward.
>>> for x in reversed(str(0.089).split(".")[1]): print(x) ... 9 8 0 >>> for x in str(0.089).split(".")[1][::-1]: print(x) ... 9 8 0