Hard
Split an Expression Into Tokens
Split an arithmetic expression into tokens: whole numbers, decimal numbers, the operators
+ - * / ( ). Spaces are ignored. Print the tokens separated by single spaces, using one re.findall.Input
One line.
Output
One line.
Sample 1
Input
3+4*(2-1)
Output
3 + 4 * ( 2 - 1 )
Sample 2
Input
12.5 / 3
Output
12.5 / 3
Output appears here