[Tutor] question

R. Alan Monroe amonroe at columbus.rr.com
Mon Feb 9 17:43:55 EST 2004


> I work with Python 2.3.3 and I try to make a programme that saves
> words in a dictionary. And because I'm not a Python expert I don't know
> how to do it or witch command I need. Could you please send me an example
> of this case? 

The only command you need is the good old equal sign.

mydict = {}

mydict['myword'] = 'myword'


Alan




More information about the Tutor mailing list