X = [0,5,0,0,3,1,15,0,12]
X = [i for i in X if i != 0]
def remove_exponent(num):
return num.to_integral() if num == num.to_integral() else num.normalize()
var = round(var, 1) #the first value is the number or var
#to round, the second is what desimal to round to
text = "hello"
print(text.zfill(10))
Output: '00000hello'
a_string = a_string.strip("0")