Hello, I have to compare two sequences form one file. I have to compare by the bases position. ( First base from seq A with first base from seq B, second base from seq A with second base from seq B etc. )

I have something like this, but it's not working properly. Could you give my any idea how to do it effectually?