What is the output of the following function calldef fun1(name, age=20): print(name, age) fun1('Emma', 25)
Question
What is the output of the following function calldef fun1(name, age=20): print(name, age) fun1('Emma', 25)
Solution
The output of the function call will be:
Emma 25
Similar Questions
Given the following function fun1() Please select all the correct function callsdef fun1(name, age): print(name, age)
What is the output of the following display_person() function calldef display_person(*args): for i in args: print(i)display_person(name="Emma", age="25")
What is the output of the following function calldef outer_fun(a, b): def inner_fun(c, d): return c + d return inner_fun(a, b) return a result = outer_fun(5, 10)print(result)515(15, 5)Syntax Erro
What is the output of the following display() function calldef display(**kwargs): for i in kwargs: print(i)display(emp="Kelly", salary=9000)TypeErrorKelly9000(’emp’, ‘Kelly’)(‘salary’, 9000)empsalary
What is the output of the following code?def outer_fun(a, b): def inner_fun(c, d): return c + d return inner_fun(a, b) res = outer_fun(5, 10)print(res)
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.