num1,num2 = map(float, raw_input('Enter a range: ').split(','))
Alternatively, if you want to allow commas in the second value, use partition instead of split:
s1,_,s2 = raw_input('Enter a range: ').partition(',')
In this case, you'll have to convert the two strings to numbers by yourself.