Need help with Pairwise Alignment module in iterating over the alignment
aligner.score(ref_seq_1.seq , seq1.seq) doesn't produce an alignment. It just gives you the score of the alignment as float value.
Instead you need to run:
alignments = aligner.align(ref_seq_1.seq , seq1.seq)
Now alignments is an Bio.Align.PairwiseAlignments you can iterate over alignments or get the score with alignments.score which gives you the same as aligner.score(ref_seq_1.seq , seq1.seq)`
If you need more information, you could check the documentation.