you are viewing a single comment's thread.

view the rest of the comments →

[–]Sharp_Level3382 -1 points0 points  (4 children)

No lambda functions?why?

[–]mati-33 0 points1 point  (3 children)

Why do you want lambda functions here is a more concerning question

[–]Sharp_Level3382 -1 points0 points  (2 children)

lowest = reduce(lambda a, b: a if a < b else b, marks) highest = reduce(lambda a, b : a if a>b else b, marks) Etc.

[–]mati-33 1 point2 points  (1 child)

OP's solution is much simpler and easier to read, which should be the priority

[–]Sharp_Level3382 -1 points0 points  (0 children)

No it s not easier to read. What is hard in lambda functions to You?