Write a programme to interchange the values of two variables
A. Using a third variable
B. Without using a third variable
Answers
Answered by
3
# Using a third variable
x = 69
y = 96
tmp = x
x = y
y = tmp
# Without using a third variable
a = 69
b = 96
a, b = b, a
Similar questions