- Code: Select all
items =['Loan Kereta','Loan Rumah','fees rumah','Qdees fees','Nakfah Zura','PTPTN','maxis','Credit card',
for item in items:
payments=int(raw_input('Enter the payments for %s '% item))
print 'The payment is %d' % payments
Hi Im a newbie and need some help. Actually i want to add all the payments that we enter/insert at the end of items. This code is for my payments every month. If i have the total amount that i pay , this is my 1st code in python.
Thanks in advance.