Tell us what’s happening:
can someone put me on the way there?the thing is that my codes reads the equations in the variable problem and not in the parameter
Your code so far
def arithmetic_arranger(problems, show_answers=False):
problems = "3801 123\n 2 + 49\n---- -----"
answers = "3801 123\n 2 + 49\n---- -----\n3803 172"
if show_answers:
return answers
else:
return problems
print(f'\n{arithmetic_arranger(["3801 - 2","123 + 49"])}')
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Challenge Information:
Build an Arithmetic Formatter Project - Build an Arithmetic Formatter Project