Is there a way in python to do like this:
a, b, = 1, 3, 4, 5
And then:
>>> a 1 >>> b 3
There is no way to do it with the literals that you've shown. But you can slice to get the effect you want:
a, b = [1, 3, 4, 5, 6][:2]
To get the first two values of a list:
a, b = my_list[:2]