Answer to Question #239782 in Python for Drey

Question #239782

Write a program that examines two numbers and exchanges their position using only the else clause


1
Expert's answer
2021-09-20T16:43:12-0400
A = int(input())
B = int(input())


if A != B:
    A = A + B
    B = A - B
print(A,B)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS