blob: 07f0dc5c6a9b29bb43ef6b1ef4b6830d862165a1 (
plain)
1
2
3
4
|
def subject_marks(subjectmarks):
#subject_marks = [('English', 88), ('Science', 90), ('Maths', 97), ('Social sciences', 82)])
subjectmarks.sort(key = lambda x: x[1])
return subjectmarks
|