Skip to content

Commit b780d0b

Browse files
2 parents 6581c4e + cf50aec commit b780d0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web_programming/current_stock_price.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
def stock_price(symbol: str = "AAPL") -> str:
2424
"""
2525
Get current stock price from Yahoo Finance.
26-
26+
2727
Args:
2828
symbol: Stock ticker symbol (e.g., 'AAPL', 'GOOG')
29-
29+
3030
Returns:
3131
Current stock price as string, or error message if not found
32-
32+
3333
Examples:
3434
>>> stock_price("EEEE") # Invalid symbol
3535
'No <fin-streamer> tag with the specified data-testid attribute found.'
@@ -62,4 +62,4 @@ def stock_price(symbol: str = "AAPL") -> str:
6262
testmod()
6363

6464
for symbol in "AAPL AMZN IBM GOOG MSFT ORCL".split():
65-
print(f"Current {symbol:<4} stock price is {stock_price(symbol):>8}")
65+
print(f"Current {symbol:<4} stock price is {stock_price(symbol):>8}")

0 commit comments

Comments
 (0)