I want to read from stdin five numbers entered as follows:
3, 4, 5, 1, 8
into seperate variables a,b,c,d & e.
How do I do this in python?
If you print out a (the variable containing your input) you will find out, that a already contains a tuple. You do not have to split the contents.
>>> a = input() 3, 4, 5, 1, 8 >>> print(a) (3, 4, 5, 1, 8) >>> type(a) >>> a[0] 3 >>> len(a) 5