<jupyter_start><jupyter_text>A set is an unordered collection of elements without duplicate entries.When printed, iterated or converted into a sequence, its elements will appear in an arbitrary order.<jupyter_code>## Example<jupyter_output><empty_output><jupyter_text>>>> print set()set([])>>> print set('HackerRank')set(['a', 'c', 'e', 'H', 'k', 'n', 'r', 'R'])>>> print set([1,2,1,2,3,4,5,6,0,9,12,22,3])set([0, 1, 2, 3, 4, 5, 6, 9, 12, 22])>>> print set((1,2,3,4,5,5))set([1, 2, 3, 4, 5])>>> print set(set(['H','a','c','k','e','r','r','a','n','k']))set(['a', 'c', 'r', 'e', 'H', 'k', 'n'])>>> print set({'Hacker' : 'DOSHI', 'Rank' : 616 })set(['Hacker', 'Rank'])>>> print set(enumerate(['H','a','c','k','e','r','r','a','n','k']))set([(6, 'r'), (7, 'a'), (3, 'k'), (4, 'e'), (5, 'r'), (9, 'k'), (2, 'c'), (0, 'H'), (1, 'a'), (8, 'n')])<jupyter_code>def average(array):
    # your code goes here
    
    arr = set(array)
    length = len(arr)
    total = 0
    for i in arr:
        total = total + i
    return total/length

if __name__ == '__main__':
    n = int(input())
    arr = list(map(int, input().split()))
    result = average(arr)
    print(result)<jupyter_output>2
 10 20
{'fraction_non_alphanumeric': 0.2919831223628692, 'fraction_numerical': 0.04810126582278481, 'mean_word_length': 5.082051282051282, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '315108', 'license': 'MIT', 'n_tokens_mistral': 510, 'n_tokens_neox': 483, 'n_words': 124, 'path': 'Python Basic/Week 4/.ipynb_checkpoints/Introduction to sets-checkpoint.ipynb', 'repo_name': 'nomancseku/NSL-HW', 'size': '1185'}