🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

def fun(a, b=6):
    a=a+b
    print(a)
fun(5, 4) 
A
11
B
9
C
5
D
4
Explanation

Sure!

The function adds a and b.

In fun(5, 4), a = 5 and b = 4, so 5 + 4 = 9.

The output is 9.

Answer: (B) 9.

Correct Answer: B) 9

Latest Updates