PYTHON:- SWAPPING VARIABLES


x = int(input('Enter value of x: '))
y = int(input('Enter value of y: '))

temp = x
x = y
y = temp

print("The value of x after swapping: ",x)
print("The value of y after swapping: ", y)


OUTPUT :-

For Other Programs Visit The WebSite:-   https://www.techapurba.com/

Follow Me On Social Media :-

For tech related videos visit my other website :- https://apurbatechinfo.blogspot.com/

Post a Comment

0 Comments