Also maintain carry with summation
if my // 10 > 0 : NEW_LINE INDENT rem = 1 NEW_LINE DEDENT else : NEW_LINE INDENT rem = 0 NEW_LINE DEDENT K = K // 10 NEW_LINE if rem > 0 : NEW_LINE v . append ( rem ) NEW_LINE