Define a function called isSenior that takes a parameter containing an integer value and returns True if the parameter is greater than or equal to 65, and False otherwise

Define a function called isSenior that takes a parameter containing an integer value and returns True if the parameter is greater than or equal to 65, and False otherwise

LANGUAGE:  PYTHON

CHALLENGE:

Define a function called isSenior that takes a parameter containing an integer value and returns True if the parameter is greater than or equal to 65, and False otherwise

SOLUTION:


def isSenior(int):
if int>=65:
    return True
else:
    return False

Add comment