Is it possible to split an input of two integers separated by a space such as '1 2' to be split into two separate variables? I have tried
ratio = input()
a,b = ratio.split(' ')
but it returns an error message of 'SyntaxError: unexpected EOF while parsing'.