Taking multiple integers on the same line as input from the user in python

This might prove useful:

a,b=map(int,raw_input().split())

You can then use ‘a’ and ‘b’ separately.

Leave a Comment