remove point zero from numbers in python 3 code example Example: how to remove trailing zeros in python a_string = a_string.strip("0")