I would like to check out whether the field of table TestProjectcontains the parameter from the Client-side passed, nested for loop is ugly, is there any efficient and easy way to realize it? Thanks so much for any advice.
def test(parameter_a: list, parameter_b: list) -> bool:
age = TestPeople.age
project_code = TestProject.project_code
if age is not None and age <= 16:
for code in project_code:
for p in parameter_a:
if code[:len(p)] == p:
return False
return True