Functions are first-class objects with attributes in #Python

>>> def calculate_bmi(weight, length): ... >>> calculate_bmi.__name__ 'calculate_bmi' >>> calculate_bmi.__doc__ 'Given the weight and length, calculate BMI' >>> calculate_bmi.__code__.co_varnames ('weight', 'length')