MCQs > IT & Programming > Python > Output of the following code? def foo(param1, *param2): print param1 print param2 def bar(param1, **param2): print param1 print param2 foo(1,2,3,4,5) bar(1,a=2,b=3)

Python MCQs

What is the output of the following code?

 

def foo(param1, *param2):

    print param1

    print param2

def bar(param1, **param2):

    print param1

    print param2

foo(1,2,3,4,5)

bar(1,a=2,b=3)

Answer

Correct Answer: 1 (2, 3, 4, 5) 1 {'a': 2, 'b': 3}

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it