Edit Distance

Edit Distance seemed pretty simple upon reading the information given. The task required you to program a code that lets the user input two words and then tells you how many of those characters are different from each other.
 The example was -
Word 1: hello
Word 2: jelly
2
When it came to coding this it became a bit difficult. We had to use a count with for as a loop in a range of the len of the first word. Then in the for we used a if statement to do the rest of the mathematics. Lastly I printed the count to give you the answer.

No comments:

Post a Comment