Python HackerRank 문제 28 - Introduction to Sets
Python HackerRank 문제 28 - Introduction to Sets Introduction to Sets 풀이 def average(array): return float ( sum ( set ( array )) / len ( set ( array ))) if __name__ == '__main__': n = int(input()) arr = list(map(int, input().split())) result = average(arr) print(result) * 출처 Introduction to Sets | HackerRank Use the set tool to compute the average. www.hackerrank.com