On Thursday 08 March 2007 14:40, kavitha thankaian
wrote:
> Hi Simon,
>
> iam till here:
>
> dorc=some['DorC']
> amount=some['amount']
> f=open("logfile.txt", "w")
> if dorc =='C':
>a = -(amount)
> if dorc == 'D':
>b = amount
>sum=a + b
>if sum == 0:
>f.writelines
Hi Simon,
iam till here:
dorc=some['DorC']
amount=some['amount']
f=open("logfile.txt", "w")
if dorc =='C':
a = -(amount)
if dorc == 'D':
b = amount
sum=a + b
if sum == 0:
f.writelines("name:")
f.writelines("%s" %some['name'])
f.writelines("credit:"
Hi,
I have 'n' number of dictionaries with the same name but different values
( DorC means debit or credit)
some={'DorC':'D', 'amount':200,'name':'xxx'}
some={'DorC':'C', 'amount':200,'name':'xxx'}
some={'DorC':'D', 'amount':300,'name':'yyy'}
some={'DorC':'C', 'amount':500,