Skip to content

Commit fe1a67f

Browse files
committed
Python: PCCE 기출문제 10번
1 parent 055755c commit fe1a67f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def solution(data, ext, val_ext, sort_by):
2+
exts = ("code", "date", "maximum", "remain")
3+
filter_data = list(filter(lambda x: x[exts.index(ext)] < val_ext, data))
4+
return sorted(filter_data, key=lambda x: x[exts.index(sort_by)])

0 commit comments

Comments
 (0)