To write a python program for swapping of two values
PC Anaconda - Python 3.7
Get the two values from the user
Assign the value of second variable to a temporary variable
Assign the value of the first variable to the second variable.
Assign the value in temporary variable to the first variable
Print both the values it would be interchanged
End the program
developed by:
name:mitun ms
ref no:22008364
ball1,ball2=input(),input()
temp=ball1
ball1=ball2
ball2=temp
print("Swapped values are:",ball1,ball2)
Thus the swapping of two values are successfully executed