I have no idea based on the code I have written, why it is giving an error for the third condition. I have specified 10 entries as (last name, first name) pair. Thanks in advance.