# Update the '_' in the code below t = int(input()) for i in range(t): #Accept 2 integers inputs A, B = map(int(input()),int(input())) #Sum of inputs S = A + B #Product of inputs P = A * B #Print the desired output for each test case print(S,P)
The map function is not correctly used here. It takes a data type and then input value separated by a comma as following.
A ,B = map(int,input().split())
Here, split() function is used to separate both input values.
For additional information on that, you should check out the following link,
Python split() funtion