Wednesday, May 25, 2022

Swap two variables in one line

input:

x=45
 y=89 
x,y=y,x
 print("after swaping x values and y is-",x,y)

output:


No comments:

Post a Comment