[Tutor] String to integer?
Bernard Lebel
python at bernardlebel.com
Wed Sep 1 23:22:05 CEST 2004
Hi Adam,
Sorry for the learning curve, I should have mentioned that the tutorial that
comes with the documentation covers dictionaries. That would have saved you
some time I guess. My bad.
Cheers
Bernard
----- Original Message -----
From: "Adam" <adam at monkeez.org>
Cc: <tutor at python.org>
Sent: Wednesday, September 01, 2004 8:28 PM
Subject: Re: [Tutor] String to integer?
> Bernard Lebel wrote:
>
> > Personally I'd consider using a dictionary for that. Assign the letter
(the
> > key) to the number (the value).
> >
> >
> > Cheers
> > Bernard
> >
>
> Bernard,
>
> The dictionary worked a treat (although I had to spend half an hour
> working it out).
>
> Many thanks
>
> Adam
>
>
> --
> site: http://www.monkeez.org
> wiki: http://wiki.monkeez.org
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
More information about the Tutor
mailing list