Re: computing with characters
- From: "Kam-Hung Soh" <kamhung.soh@xxxxxxxxx>
- Date: Wed, 30 Apr 2008 17:01:37 +1000
On Wed, 30 Apr 2008 16:13:17 +1000, SL <ni@xxxxxxx> wrote:
How can I compute with the integer values of characters in python?
Like 'a' + 1 equals 'b' etc
Try: ord('a')
See also: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65117
--
Kam-Hung Soh <a href="http://kamhungsoh.com/blog">Software Salariman</a>
.
- References:
- computing with characters
- From: SL
- computing with characters
- Prev by Date: Re: sed to python: replace Q
- Next by Date: Re: sed to python: replace Q
- Previous by thread: Re: computing with characters
- Next by thread: Free YouTube Video Downloader Software
- Index(es):