Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following Python code?
>>> a,b=6,7
>>> a,b=b,a
>>> a,b

What will be the output of the following Python code?
>>> a,b=6,7
>>> a,b=b,a
>>> a,b
a) (6,7)
b) Invalid syntax
c) (7,6)
d) Nothing is printed

Answer: c
Explanation: The above piece of code illustrates the unpacking of variables.

Join The Discussion