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
/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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started