Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #56903

Re: converting letters to numbers

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python@mrabarnett.plus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.021
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'encode': 0.09; 'python': 0.11; 'def': 0.12; 'wrote': 0.14; 'above?': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'language': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User- Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'tim': 0.29; "i'm": 0.30; '-0700,': 0.31; 'comments,': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'subject:numbers': 0.31; 'know.': 0.32; 'maybe': 0.34; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'header:Reply-To:1': 0.67; 'reply- to:no real name:2**0': 0.71; 'reply-to:addr:python.org': 0.84; '2013': 0.98
X-CM-Score 0.00
X-CNFS-Analysis v=2.1 cv=bKAvfpOZ c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=05MOGALpfCEA:10 a=3CgYVwzq0acA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=zRebi6OpGAYA:10 a=BN8E2hS77ueXspH4pQ8A:9 a=wPNLvfGTeEIA:10
X-AUTH mrabarnett:2500
Date Wed, 16 Oct 2013 23:53:02 +0100
From MRAB <python@mrabarnett.plus.com>
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1
MIME-Version 1.0
To python-list@python.org
Subject Re: converting letters to numbers
References <26151b64-4f5e-4ee9-81ac-26679932f43d@googlegroups.com> <mailman.859.1381246619.18130.python-list@python.org> <fb210bab-7ea2-4c70-93e0-7f111d794b72@googlegroups.com> <b2om59pa1npetckqmm66dt16ugkvrv520e@4ax.com> <525b7aec$0$30000$c3e8da3$5496439d@news.astraweb.com> <l3n4j4$enl$1@dont-email.me>
In-Reply-To <l3n4j4$enl$1@dont-email.me>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To python-list@python.org
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1122.1381963987.18130.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1381963987 news.xs4all.nl 16008 [2001:888:2000:d::a6]:58015
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:56903

Show key headers only | View raw


On 16/10/2013 23:39, Rotwang wrote:
> On 14/10/2013 06:02, Steven D'Aprano wrote:
>> On Sun, 13 Oct 2013 20:13:32 -0700, Tim Roberts wrote:
>>
>>> def add(c1, c2):
>>>       % Decode
>>>       c1 = ord(c1) - 65
>>>       c2 = ord(c2) - 65
>>>       % Process
>>>       i1 = (c1 + c2) % 26
>>>       % Encode
>>>       return chr(i1+65)
>>
>> Python uses # for comments, not %, as I'm sure you know. What language
>> were you thinking off when you wrote the above?
>
> Maybe TeX?
>
Or PostScript?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

converting letters to numbers kjakupak@gmail.com - 2013-10-08 07:28 -0700
  Re: converting letters to numbers Robert Day <robertkday@gmail.com> - 2013-10-08 15:47 +0100
    Re: converting letters to numbers kjakupak@gmail.com - 2013-10-08 07:51 -0700
      Re: converting letters to numbers Joel Goldstick <joel.goldstick@gmail.com> - 2013-10-08 11:01 -0400
  Re: converting letters to numbers random832@fastmail.us - 2013-10-08 11:36 -0400
    Re: converting letters to numbers kjakupak@gmail.com - 2013-10-08 08:44 -0700
      Re: converting letters to numbers random832@fastmail.us - 2013-10-08 11:58 -0400
      Re: converting letters to numbers Tim Roberts <timr@probo.com> - 2013-10-13 20:13 -0700
        Re: converting letters to numbers Steven D'Aprano <steve@pearwood.info> - 2013-10-14 05:02 +0000
          Re: converting letters to numbers Charles Hixson <charleshixsn@earthlink.net> - 2013-10-16 12:18 -0700
            Re: converting letters to numbers Piet van Oostrum <piet@vanoostrum.org> - 2013-10-16 16:25 -0400
          Re: converting letters to numbers Rotwang <sg552@hotmail.co.uk> - 2013-10-16 23:39 +0100
            Re: converting letters to numbers MRAB <python@mrabarnett.plus.com> - 2013-10-16 23:53 +0100
            Re: converting letters to numbers Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-10-17 01:21 +0100
          Re: converting letters to numbers Tim Roberts <timr@probo.com> - 2013-10-19 16:31 -0700
          Re: converting letters to numbers rusi <rustompmody@gmail.com> - 2013-10-20 01:33 -0700
  Re: converting letters to numbers Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-08 17:05 +0100
  Re: converting letters to numbers Dave Angel <davea@davea.name> - 2013-10-08 21:24 +0000

csiph-web