[Tutor] nested loops

2011-02-07 Thread Ashley F
I am trying to write a function...(it's kind of like a long way to do BLAST but only comparing 2 sequences)   I have 3 loops nested...Within those loops, I obtain a "best fit score" so to speak.   I can get the program to run...but the loops run all the way to the end.  I can't figure out how to

[Tutor] function help

2011-02-07 Thread Ashley F
ok...here's the function I've written so far.   def padWithGaps(seq):     for letter in seq:    letter="-"    line=len(seq)    dashline=line*letter     return dashline   def replace(someString,position,letter):     first=someString[0:position]     second=letter     third=someString[posi