Q. Find and write the output of the following python code:


def Change (P, Q = 30):

    P = P + Q

    Q = P - Q

    print (P, "#", Q)

    return (P)


R = 150

S = 100

R = Change (R, S)

print (R, "#", S)

S = Change (S)


Answer :-

Output :-

250 # 150
250 # 100
130 # 100

>>>

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post