Check sibling questions
Computer Science - Class 12
Solutions to CBSE Sample Paper - Computer Science Class 12

Predict the output of the following code:

def Swapper (X,Y=5) :



    return Y



B= Swapper (A,B)

print(A,B, sep = '^')

A= Swapper (A)

print(A,B,sep= '^', end='***')


Answer by student

The output of the code is:



Detailed answer by teachoo

The rest of the post is locked. Join Teachoo Black to see the full post.

Ask a doubt
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 13 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.