Is there a way to get the last digit of a number. I am trying to find variables that end with \"1\" like 1,11,21,31,41,etc..
If I use a text variable I can simply pu
Convert to string first:
oldint = 10101 newint = int(str(oldint)[-1:])