(no subject)
Steve Holden
steve at holdenweb.com
Sat Oct 2 19:26:42 EDT 2004
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
More information about the Python-list
mailing list