[Tutor] Need advise on protein sequence alignment code in python 2.7 giving wrong output

Mark Lawrence breamoreboy at yahoo.co.uk
Tue Aug 11 23:26:40 CEST 2015


On 11/08/2015 22:16, Alan Gauld wrote:
> On 11/08/15 22:09, Mark Lawrence wrote:
>> On 11/08/2015 19:54, Laura Creighton wrote:
>>> You posted incomplete code -- at any rate I cannot get it to work.
>>>
>>
>> Having taken a closer look how can it work when range() and xrange() are
>> both used?
>
> OK, I'll bite. Why is that a problem?
> It's not conventional but I can't think of a reason why not.
> What am I missing?
>

Whoops, I'm so used to thinking Python 3 I'd completely forgotten that 
both exist in Python2.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list