input = 'a+b++b+++c++5+6+7++8+9++10'
string = input.split('+')
print(string)
when we run this code the output is ['a', 'b', '', 'b', '', '', 'c', '', '5', '6', '7', '', '8', '9', '', '10']
But i want to split the string with no blank like ['a', 'b', 'b', 'c', '5', '6', '7', '8', '9', '10']
Is there any function or method to remove blanks without using for loop like
Use a regex