Update example_weather_tools.py
This commit is contained in:
parent
b63f91ade4
commit
c340e8cd3b
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import random
|
|||
from typing import Literal
|
||||
|
||||
|
||||
def _weather(w: str, temp, f):
|
||||
def _weather(w: str, temp, format):
|
||||
return f'{w}, {temp}C' if format == 'celsius' \
|
||||
else f'{w}, {(temp * 9/5) + 32}F'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue