[Tutor] String to integer?

Adam adam at monkeez.org
Thu Sep 2 23:53:05 CEST 2004


Bernard Lebel wrote:

> 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

Bernard,

Not your bad at all - it's just my cranky brain trying to get back in to 
programming after such a long time away.

Thanks again.

Adam

-- 
site: http://www.monkeez.org
wiki: http://wiki.monkeez.org


More information about the Tutor mailing list