Fixed string formatting... my bad

This commit is contained in:
Nitsujed
2020-10-19 14:21:25 -04:00
parent 8699f89c0d
commit 464478676a

View File

@@ -5,7 +5,7 @@ from ..__init__ import Generator
def celsiustofahrenheitFunc(maxTemp=100): def celsiustofahrenheitFunc(maxTemp=100):
celsius = random.randint(-50, maxTemp) celsius = random.randint(-50, maxTemp)
fahrenheit = (celsius * (9 / 5)) + 32 fahrenheit = (celsius * (9 / 5)) + 32
problem = "Convert", str(celsius), "degrees Celsius to degrees Fahrenheit =" problem = "Convert " + str(celsius) + " degrees Celsius to degrees Fahrenheit ="
solution = str(fahrenheit) solution = str(fahrenheit)
return problem, solution return problem, solution