Question: 
Write a function to perfom the rear element extraction from list of tuples records.


Model's Code:
def rear_extract(records):
    return [record[-1] for record in records]



Sample Correct Code:
def rear_extract(test_list):
  res = [lis[-1] for lis in test_list]
  return (res) 


Asserts:
assert rear_extract([(1, 'Rash', 21), (2, 'Varsha', 20), (3, 'Kil', 19)]) == [21, 20, 19]
assert rear_extract([(1, 'Sai', 36), (2, 'Ayesha', 25), (3, 'Salman', 45)]) == [36, 25, 45]
assert rear_extract([(1, 'Sudeep', 14), (2, 'Vandana', 36), (3, 'Dawood', 56)]) == [14, 36, 56]


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 272 of 974: 196/272 (72.05882352941177%): success