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?
remove_duplicates(input("Enter integers separated by spaces: "))
numbers = input("Enter integers separated by spaces: "); print(list(set(map(int, numbers.split()))))
unique_values(get_user_input())
print(remove_duplicates(get_numbers()))
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:

Your comments will be displayed after verification.