What is the output of the following function calldef fun1(name, age=20): print(name, age) fun1('Emma', 25)Emma 25Emma 20Emma 22
Question
Solution 1
The output of the function call fun1('Emma', 25)
will be Emma 25
.
Here's the step by step explanation:
The function
fun1
is defined with two parameters:name
andage
. Theage
parameter has a default value of 20.When you call the function with the arguments 'Emma' and 25 (`fun1 Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study prob
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solv
Similar Questions
What is the output of the following function calldef fun1(name, age=20): print(name, age) fun1('Emma', 25)Emma 25Emma 20Emma 22
What is the output of the following function calldef fun1(name, age=20): print(name, age) fun1('Emma', 25)
Given the following function fun1() Please select all the correct function callsdef fun1(name, age): print(name, age)
Choose the correct function declaration of fun1() so that we can execute the following function call successfullyfun1(25, 75, 55)fun1(10, 20)
What is the output of the add() function calldef add(a, b): return a+5, b+5result = add(3, 2)print(result)