Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
emi=loan/12
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-1-17f01b1704d9> in <module>
----> 1 emi=loan/12
NameError: name 'loan' is not defined
def loan_emi(amount):
emi = amount/12
print('The EMI is Rs.{}'.format(emi))
loan_emi(12)
The EMI is Rs.1.0
def loan_emi(amount,duration):
emi = amount/duration
print('The EMI is Rs.{}'.format(emi))
loan_emi(120000,12)
The EMI is Rs.10000.0