What will be the output of the following Python code if a=10 and b =20?
a=10
b=20
a=a^b
b=a^b
a=a^b
print(a,b)
a=10
b=20
a=a^b
b=a^b
a=a^b
print(a,b)
A. 10 20
B. 10 10
C. 20 10
D. 20 20
Answer: Option C
a=10
b=20
a=a^b
b=a^b
a=a^b
print(a,b)
A. 10 20
B. 10 10
C. 20 10
D. 20 20
Answer: Option C
Join The Discussion