In This Python program we will learn swap two numbers without using temporary variable.
Program Steps:
Program to swap two numbers
x=int(input("Enter value of first variable: x= ")) |
Output
Enter value of first variable: x= 102 |
Conclusion: This way we can swap numbers without using temporary variable in python.
Article Contributed By :
|
|
|
|
1732 Views |