Untitled
def evaluate_candidate(age, experience, knows_python, knows_java, has_certifications): if (age >= 25 and experience >= 5 and knows_python and knows_java) or (has_certifications and experience >= 3): return "The candidate qualifies for the senior developer position." else: return "The candidate does not qualify for the senior developer position." # Main program def main(): print("Senior Developer Position Evaluation") # Static candidate details (change these to test different scenarios) age = 28 experience = 4 knows_python = True knows_java = False has_certifications = True print(f"Static Input: Age={age}, Experience={experience}, Knows Python={knows_python}, Knows Java={knows_java}, Has Certifications={has_certifications}") # Evaluate candidate result = evaluate_candidate(age, experience, knows_python, knows_java, has_certifications) print(result) if __name__ == "__main__": main()
Leave a Comment