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