Computer Science, asked by pankajkumar7812, 11 months ago

What will be the output of the following code:
def func_default(x=1, y=2, z=3):
    print(x)
    print(y)
    print(z)
func_default(7,9)

1
2
3
7
2
9
7
9
3
None of the above​

Answers

Answered by Anonymous
1

OUTPUT:-

7 9 3

EXPLANATION:-

7 and 9 assign to x and y from function func_default();

and value of z not changed .

so ,

output is 7 9 3

Answered by beingSaRcAsTiC
0

\huge{\fbox{\fbox{\bigstar{\mathfrak{\red{Answer::}}}}}}

☆def func_default(x =1;y =2;z=3);

print(x)

print(y)

print(z)

func_default(7,9)

OUTPUT=

●7

●9

●3

OptionA

☆☆As the print statement is for x,y and z....and through the func_default(7,9) statement 7 and 9 are assigned to x and y

Hope It Helps...!!!

\small{\mathfrak{\orange{@being_SaRcAsTiC}}}

Similar questions