Re: (no subject)

From: Steve Holden (steve_at_holdenweb.com)
Date: 10/03/04


Date: Sat, 02 Oct 2004 19:26:42 -0400

Campbell Kwok wrote:
> Hi, I am trying to write a program for my school homework and I'm a
> little stuck. The homework have to do with barcodes and I need to read
> the barcode, then add up all the odd number positions(eg a barcode of
> 123456789012, then the odd is 1,3,5,7,9,1) I do not know how to get the
> odd number positions out of that str of numbers. Please help me
>
> _________________________________________________________________
> Scan and help eliminate destructive viruses from your inbound and
> outbound e-mail and attachments.
> http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
> Start enjoying all the benefits of MSNŽ Premium right now and get the
> first two months FREE*.
>
for i in range(half-length):
   print 2*(i+1)

regards
  Steve



Relevant Pages

  • (no subject)
    ... I am trying to write a program for my school homework and I'm a little ... stuck. ... The homework have to do with barcodes and I need to read the barcode, ... then add up all the odd number positions(eg a barcode of 123456789012, ...
    (comp.lang.python)
  • Re: (no subject)
    ... I am trying to write a program for my school homework and I'm a ... > little stuck. ... > the barcode, then add up all the odd number positions(eg a barcode of ... > the odd number positions out of that str of numbers. ...
    (comp.lang.python)
  • Re: (no subject)
    ... > little stuck. ... The homework have to do with barcodes and I need to read ... > the barcode, then add up all the odd number positions(eg a barcode of ... > the odd number positions out of that str of numbers. ...
    (comp.lang.python)
  • Re: OT: Hitman movie
    ... walking around hatless, am completely bald, and have a barcode ... Quite a few people have tattoes on their head, back of neck and face so I don't find it odd. ...
    (comp.sys.ibm.pc.games.action)