x = 5 y = 10
#x = input('Enter value of x: ') #y = input('Enter value of y: ')
temp = x x = y y = temp
print('The value of x after swapping: {}'.format(x)) print('The value of y after swapping: {}'.format(y))
| Name | Name | Last commit date | ||
|---|---|---|---|---|
x = 5 y = 10
#x = input('Enter value of x: ') #y = input('Enter value of y: ')
temp = x x = y y = temp
print('The value of x after swapping: {}'.format(x)) print('The value of y after swapping: {}'.format(y))