Re: (no subject)
From: Steve Holden (steve_at_holdenweb.com)
Date: 10/03/04
- Next message: Remco Boerma: "Re: cost of creating threads"
- Previous message: Sam Holden: "Re: python vs c#"
- In reply to: Campbell Kwok: "(no subject)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Remco Boerma: "Re: cost of creating threads"
- Previous message: Sam Holden: "Re: python vs c#"
- In reply to: Campbell Kwok: "(no subject)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|