human
Give me a code to assign other value to a variable from two possible values and the other steps required given the following:
Assign other value to a variable from two possible values | Function to alternate the values.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to assign other value to a variable from two possible values and the other steps required.
 def alternate ( a , b , x ) :
	x = a ^ b ^ x
	print ( " After ▁ exchange " )
	print ( " x ▁ is " , x )
a = - 10
b = 15
x = a
print ( " x ▁ is " , x )
alternate ( a , b , x )