<div>Hi,</div> <div> </div> <div>I have 'n' number of dictionaries with the same name but different values</div> <div>( DorC means debit or credit)</div> <div> </div> <div> </div> <div>some={'DorC':'D', 'amount':200,'name':'xxx'}</div> <div>some={'DorC':'C', 'amount':200,'name':'xxx'}</div> <div>some={'DorC':'D', 'amount':300,'name':'yyy'}</div> <div>some={'DorC':'C', 'amount':500,'name':'yyy'}</div> <div>some={'DorC':'D', 'amount':700,'name':zzz}</div> <div>some={'DorC':'C', 'amount':900,'name':zzz} and so on,,,</div> <div> </div> <div>if the credit and debit is not equal for a person, then i would like to open a file and write it in the following format:</div> <div> </div> <div>name:yyy</div> <div>debit:300</div> <div>credit:500</div> <div> </div> <div>name:zzz</div> <div>debit:700</div> <div>credit:900</div> <div> </div> <div>can anyone help me???</div> <div> </div>
<div>kavitha</div><p>
<hr size=1></hr>
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers</a>