Hello,
i'm very new to programming in genera. Python is the first language I'm learning.
So,
I was instructed to make a program that ask the user for loan payment, insurance, gas, oil, tires, and maintenance. The program will calculate the monthly cost and annual cost.
here is what i have so far..
def expenses():
loanpayment = input ("Enter The amount of the loan payment")
insurance = input ("Enter the amount of teh incurance")
gas = input ("Enter the amount of the gas expenses")
oil = input ("Enter the amount of the oil change service")
tires = input ("Enter the amount to replace the tiresa")
maintenance = input ("Enter the amout for maintenance")
return expenses
i need to use module to create the program, so a module to calculate the monthly expenses and another model to calculate the annual expenses.
So my question is how do i add every that was inputed from the user?
that way i can create a module that use the total * 12 for the annual expenses..
Thank for the help