Interview Query

New Resumes

7
Have you seen this question before?

Say we have a list of existing_ids that we have already scraped. Let’s say we also have two lists, one of names and another of urls that correspond to names with the id of the names in the url.

Write a function new_resumes to return the names and ids for ids that we haven’t scraped yet.

Example:

existing_ids = [15234, 20485, 34536, 95342, 94857]

names = ['Calvin', 'Jason', 'Cindy', 'Kevin']
urls = [
    'domain.com/resume/15234', 
    'domain.com/resume/23645', 
    'domain.com/resume/64337', 
    'domain.com/resume/34536',
]

def new_resumes(existing_ids,names,urls) ->
output = [('Jason', 23645), ('Cindy', 64337)]
Next question: Email Blast
Python 3.9.6
Loading editor