Merge pull request #266 from Nitsujed/master

Changed string formatting
This commit is contained in:
Luke Weiler
2020-10-19 14:29:43 -04:00
committed by GitHub

View File

@@ -5,7 +5,7 @@ from ..__init__ import Generator
def celsiustofahrenheitFunc(maxTemp=100):
celsius = random.randint(-50, maxTemp)
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)
return problem, solution