Untitled

 avatar
unknown
plain_text
24 days ago
729 B
2
Indexable
def check_eligibility(age, experience, knows_python):

    if age >= 18 and experience >= 2 and knows_python:
        return "You are eligible for the program."
    
    if age < 18 or experience < 2 or not knows_python:
        return "You are not eligible for the program due to one or more unmet requirements."

# Main program
def main():
    print("Welcome to the Eligibility Checker!")

    # Static inputs
    age = 20
    experience = 1
    knows_python = True  # Static boolean value

    print(f"Static Input: Age={age}, Experience={experience}, Knows Python={knows_python}")

    # Check eligibility
    result = check_eligibility(age, experience, knows_python)
    print(result)

if __name__ == "__main__":
    main()
Leave a Comment