How to read two integer variables on the same line with Python?
a= int(input())
b = int(input())
How to read two integer variables on the same line with Python?
a= int(input())
b = int(input())
The code below should help:
N, M = [int(x) for x in input().split(" ")]