By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,655 Members | 1,860 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,655 IT Pros & Developers. It's quick & easy.

how to appened new dictionary element to list in for each loop?

P: 1
i created one dictionary ex:abc={"name":"xyz"}
after that i appened that dictionary to the list ex:x=[]
x.appened(abc)
i am iterating the list and i am comaring new name with already exsiting name
if name is new i want to appened the new record to the list
Jan 30 '18 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.