If our input was two numbers in a line. And these numbers were greater than 10. How can I make a list out of them by separating them properly? For example:
Input:10 20
X=List(input()):['1','0',' ','2','0']
But i want to be like this:
X=['10',' ','20']
import re; re.split('(\W)', input())In Python, how do I split a string and keep the separators?