Help me in solving GS10 problem

My issue

I don’t understand how this map function C, D, E = map(___,___) is taking 2 inputs but are accessed by 3 variables. ? will be nice to hear from you.

My code

# Update the '_' below to solve the problem

#accept the count of test cases given in the the 1st line
t = int(input())       
#run a loop to accept 't' inputs
for i in range(_):     
    #accept 2 integers on the 1st line of each test case
    A, B = map(___,___)      
    #accept 3 integers on the 2nd line of each test case
    C, D, E = map(___,___)   
    #output the 5 integers on a single line for each test case    
    _____(A, B, C, D, E)

Learning course: Python for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

@prakhar9015
It doesn’t depend upon how may inputs .
It only takes two parameters .
like this

# Solution as follows

#accept the count of test cases given in the the 1st line
t = int(input())
#run a loop to accept 't' inputs
for i in range(t):
    #accept 2 integers on the 1st line of each test case
    A, B = map(int, input().split())
    #accept 3 integers on the 2nd line of each test case
    C, D, E = map(int, input().split())
    #output the 5 integers on a single line for each test case
    print(A, B, C, D, E)
1 Like