Swap two Numbers in Python Program: a=56 b=42 print(f"Before Swaping: a={a} b={b}") #Swaping the Two Number using third variable temp=a a=b b=temp print(f"Ater Swaping: a={a} b={b}") Expected OutPut: Before Swaping: a=56 b=42 Ater Swaping: a=42 b=56 Previous Post Next Post
0 Comments
Post a Comment