[Solved] Embedded function returns None
monthly_payment_function does not return anything. Replace monthly_payment= with return (that’s ‘return’ followed by a space). Also you have an unconditional return before def monthly_payment_function, meaning it never gets called (strictly speaking, it never even gets defined). Also you are pretty randomly mixing units, and your variable names could use some help: from __future__ import division … Read more