Skip to main content
Contents Index
Search Book
Search Results:
No results.
Read aloud
Readability settings Prev Up Next Scratch ActiveCode Profile
title here
\(
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 14.12 Code debugging activity
Every week, a new cat or dog was featured as the Ann Arbor’s 107one Pet-of-the-Week in 2020. The code below is supposed to
get the pet of the week webpage from September of 2020, scrape the text of the a tag shown in the picture, and print it .
Figure 14.12.1. The pet of the week from August 22, 2020 was Chester.
However, it doesn’t work! Instead of printing the text of the
a tag, it prints nothing.
Can you fix it? Try to fix the buggy code below. Run the code to save your progress.
Activity 14.12.1 .
You have attempted
of
activities on this page.