English subtitles

← Apply the Scientific Method - Software Debugging

Get Embed Code
4 Languages

Showing Revision 3 created 05/25/2016 by Udacity Robot.

  1. Let's now apply the scientific method to a Python program which removes HTML markup.
  2. First of all, let us write down again what we have observed so far,
  3. what we expected, and what the output was.
  4. If our input was foo in HTML markup, then we would expect the output foo,
  5. and the actual output was foo, so this is just fine.
  6. If our input was the same thing in double quotes, we would expect the double quotes
  7. also to appear in the output, but instead we get the HTML markup still included in the output
  8. that is the whole thing fails because of all the observations we made and from this,
  9. we need to come up with the first hypothesis on what makes the error.
  10. So, here a quiz. Which hypotheses are consistent with our observations so far?
  11. Check all that apply.
  12. Is it that double quotes are stripped from tagged input, is it that tags in double quotes
  13. are not stripped, is it that the tag for bold is always stripped from the input,
  14. or is it that four-letter word are stripped.