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.
2 parents 6581c4e + cf50aec commit b780d0bCopy full SHA for b780d0b
web_programming/current_stock_price.py
@@ -23,13 +23,13 @@
23
def stock_price(symbol: str = "AAPL") -> str:
24
"""
25
Get current stock price from Yahoo Finance.
26
-
+
27
Args:
28
symbol: Stock ticker symbol (e.g., 'AAPL', 'GOOG')
29
30
Returns:
31
Current stock price as string, or error message if not found
32
33
Examples:
34
>>> stock_price("EEEE") # Invalid symbol
35
'No <fin-streamer> tag with the specified data-testid attribute found.'
@@ -62,4 +62,4 @@ def stock_price(symbol: str = "AAPL") -> str:
62
testmod()
63
64
for symbol in "AAPL AMZN IBM GOOG MSFT ORCL".split():
65
- print(f"Current {symbol:<4} stock price is {stock_price(symbol):>8}")
+ print(f"Current {symbol:<4} stock price is {stock_price(symbol):>8}")
0 commit comments