Question: Write a program in python 3 that ask the user for two string and find the Hamming distance between the strings. Input sequences should only

Write a program in python 3 that ask the user for two string and find the Hamming distance between the strings.

Input sequences should only include nucleotides A, T, G and C. Program should ask the user to reenter the sequence if user enter an invalid character.

Program should be able to compare the strings are of same length. If the strings are not of the same length program should ask the user to enter the strings again.

User should be able to enter upper, lower or both cases as an input sequence.

The program should print the output in the following format.

Sample output of the program

Write a program in python 3 that ask the user for two

/Library/Frameworks/Python. framework/Versions/3.4/bin/python3.4 /Users/ Please enter string one: ATTTCTAT Please enter string two: ATTTCCAT ATTTCTAT ATTTCCAT The hamming distance of sequence ATTTCTAT and ATTTCCAT is 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!