from Bio import Align aligner = Align.PairwiseAligner() seq1 = "ATTCCTAAGT" seq2 = "TCGT" alignments = aligner.align(seq1, seq2) print(alignments[0])