human
Write a function to sort a list of tuples using the second value of each tuple. Here is a solution in Python:
assistant
#Here is the Python code you requested.
 def subject_marks(subjectmarks):
#subject_marks = [('English', 88), ('Science', 90), ('Maths', 97), ('Social sciences', 82)])
 subjectmarks.sort(key = lambda x: x[1])
 return subjectmarks