We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60f6efe commit 8d9fa81Copy full SHA for 8d9fa81
web_programming/current_stock_price.py
@@ -26,8 +26,7 @@ def stock_price(symbol: str = "AAPL") -> str:
26
soup = BeautifulSoup(yahoo_finance_source, "html.parser")
27
28
if specific_fin_streamer_tag := soup.find("span", {"data-testid": "qsp-price"}):
29
- text = specific_fin_streamer_tag.get_text()
30
- return text
+ return specific_fin_streamer_tag.get_text()
31
return "No <fin-streamer> tag with the specified data-testid attribute found."
32
33
0 commit comments