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
swapping two values
developed by:dhivyapriya.r
register no:22008389
n1=int(input())
n2=int(input())
temp=n2
n2=n1
n1=temp
print("Swapped values are:", n1,n2)
Thus the swapping of two values are successfully executed