We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efc0d40 commit 69459b3Copy full SHA for 69459b3
web_programming/covid_stats_via_xpath.py
@@ -46,10 +46,7 @@ def covid_stats(
46
return CovidData("N/A", "N/A", "N/A")
47
data = html.fromstring(response.content).xpath(xpath_str)
48
if len(data) != 3:
49
- print(
50
- "Unexpected data format. The page structure may have "
51
- "changed."
52
- )
+ print("Unexpected data format. The page structure may have changed.")
53
54
return CovidData(*data)
55
@@ -60,4 +57,4 @@ def covid_stats(
60
57
"Total deaths due to COVID-19 in the world: {}\n"
61
58
"Total COVID-19 patients recovered in the world: {}"
62
59
)
63
- print(fmt.format(*covid_stats()))
+ print(fmt.format(*covid_stats()))
0 commit comments