human
Write a python function to find the sum of non-repeated elements in a given list. Here is a solution in Python:
=====
Write me a Python code to find the sum of non-repeated elements in a given list?
assistant
#Here is Python code to find the sum of non-repeated elements in a given list.
 def find_sum(arr): 
    arr.sort() 
    sum = arr[0] 
    for i in range(len(arr)-1): 
        if (arr[i] != arr[i+1]): 
            sum = sum + arr[i+1]   
    return sum