X = [0,5,0,0,3,1,15,0,12] X = [i for i in X if i != 0]
var = round(var, 1) #the first value is the number or var #to round, the second is what desimal to round to
a_string = a_string.strip("0")