remove last 76 letters from string

Iain King iainking at gmail.com
Thu Aug 6 10:28:29 CEST 2009


>      print >>nucleotides, seq[-76]

>      last_part = line.rstrip()[-76 : ]

You all mean:   seq[:-76]   , right? (assuming you've already stripped
any junk off the end of the string)

Iain



More information about the Python-list mailing list