how can we use generator to get me the first and last value of values present in generator comprehension: ex: if we would use list : l=[1,2,3,4] and we want first and last