string = input('Input')     >>> 1,2     print(cord.split(','))     >>>['1', '2']

Read more of this post