Python Programming - Console Input/Output - Discussion
Discussion Forum : Console Input/Output - General Questions (Q.No. 70)
70.
How can you read a list of integers from the console, remove duplicates, and print the result?
Answer: Option
Explanation:
To read a list of integers from the console, remove duplicates, and print the result, use
numbers = input("Enter integers separated by spaces: "); print(list(set(map(int, numbers.split()))))
.
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