Guest User

Untitled

a guest
May 25th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #Ouputs number of point mutations from text file with two sequences
  2. f = open("CountingPointMutationsinput.txt", "r");
  3. s = f.readline();
  4. t = f.readline();
  5. dH = 0;
  6. i = 0;
  7. while i<len(s):
  8. if (s[i] != t[i]):
  9. dH+=1;
  10. i = i+1;
  11. print dH;
  12. f.close();
Add Comment
Please, Sign In to add comment