Python Programming - Console Input/Output - Discussion
Discussion Forum : Console Input/Output - General Questions (Q.No. 64)
64.
How can you read two integers from the console and swap their values?
Answer: Option
Explanation:
To read two integers from the console and swap their values, use
a, b = input("Enter two numbers: ").split(); a, b = b, a; print(a, b)
.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers