Skip to content

Commit 21a79d5

Browse files
authored
Create Average Salary Excluding the Minimum and Maximum Salary.py
1 parent ed33ddd commit 21a79d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#1491. Average Salary Excluding the Minimum and Maximum Salary
2+
class Solution:
3+
def average(self, salary):
4+
salary.remove(max(salary))
5+
salary.remove(min(salary))
6+
return (sum(salary)/len(salary))

0 commit comments

Comments
 (0)