Spaces:
Runtime error
Runtime error
Update app.py
Browse filesCleanup Python typo
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def celcius_tool(convertTo:str, temperature:int)-> str: #it's important to speci
|
|
| 18 |
"""
|
| 19 |
if convertTo == "F":
|
| 20 |
result = int((temperature * 1.8) + 32)
|
| 21 |
-
return f"temperature} degrees in Fahrenheit is {result}"
|
| 22 |
elif convertTo == "C":
|
| 23 |
result = int((temperature - 32) * 5/9)
|
| 24 |
return f"Temperature {temperature} degrees in Celsius is {result}"
|
|
|
|
| 18 |
"""
|
| 19 |
if convertTo == "F":
|
| 20 |
result = int((temperature * 1.8) + 32)
|
| 21 |
+
return f"Temperature {temperature} degrees in Fahrenheit is {result}"
|
| 22 |
elif convertTo == "C":
|
| 23 |
result = int((temperature - 32) * 5/9)
|
| 24 |
return f"Temperature {temperature} degrees in Celsius is {result}"
|