dict problem

Roberto Bonvallet Roberto.Bonvallet at cern.ch
Wed Oct 25 11:08:32 CEST 2006


Roberto Bonvallet wrote:
> Alistair King wrote:
>> DS1v = {'C': 6, 'H': 10, 'O': 5}
> 
> Try DS1v['C'] instead of DS1v[C].

> updateDS1v(FCas, C, XDS)
> updateDS1v(FHas, H, XDS)
> updateDS1v(FOas, O, XDS)
> updateDS1v(FNas, N, XDS)
> updateDS1v(FSas, S, XDS)
> updateDS1v(FClas, Cl, XDS)
> updateDS1v(FBras, Br, XDS)
> updateDS1v(FZnas, Zn, XDS)
> print DS1v

Sorry, I hadn't seen this part.
Change C, H, O, ... with 'C', 'H', 'O', ...

-- 
Roberto Bonvallet



More information about the Python-list mailing list