mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Fixed string formatting... my bad
This commit is contained in:
@@ -4,7 +4,7 @@ from ..__init__ import Generator
|
|||||||
def celsiustofahrenheit(maxTemp=100):
|
def celsiustofahrenheit(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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user