The basic idea is:
So here is the code:
x = float(input('ENTER THE VALUE OF X: ')) y = float(input('ENTER THE VALUE OF Y: ')) temp = x x = y y = temp print('X :', x,' Y :', y)
Output:
ENTER THE VALUE OF X: 10 ENTER THE VALUE OF Y: 20 X : 20.0 Y : 10.0
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
So here is the code:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer