Question: 
Write a function to access the initial and last data of the given tuple record.


Model's Code:
def front_and_rear(record):
    return (record[0], record[-1])



Sample Correct Code:
def front_and_rear(test_tup):
  res = (test_tup[0], test_tup[-1])
  return (res) 


Asserts:
assert front_and_rear((10, 4, 5, 6, 7)) == (10, 7)
assert front_and_rear((1, 2, 3, 4, 5)) == (1, 5)
assert front_and_rear((6, 7, 8, 9, 10)) == (6, 10)


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

Test 710 of 974: 537/710 (75.63380281690141%): success