2020-02-08 14:59:37
employee = []
#entries = {}
#skills[]
 
for x in range(0, 2):
    entries = {}
    skill = []
    entries['name'] = input("Enter name \n")
    entries['age'] = input("Enter age \n")
    n = int(input("Enter number of skills: \n"))
    skill.extend(input("Enter skills with a space \n").split())
    entries['skills'] = skill
    employee.append(entries)
 
print(employee)
 
searchterm = input("Enter a skill to search: \n")
#test =[]
match = []
for a in employee:
    print("iterating inside list")
    #for y in entries:
    for z in entries.get('skills'):        
        if searchterm in entries.get('skills'):            
            match.append(entries.get('name'))
           #test.append(match)
 
print(match)
 
Invalid Email or Password