Elements that occurred only once in the array by python

Viewed 15

Given an integer number A consisting of n elements. How can i find the elements that occurred only once in the array python? For instance:

5
1 2 1 3 4

Output:

2 3 4
0 Answers
Related