remove last decimal in python code example Example: remove last digit from number python # remove last digit from number (as integer) number //= 10