Tell us what’s happening:
I don’t know why it won’t return the value of arranged_solved when the optional argument is set to True.
Your code so far
https://repl.it/@apineda1/arithmeticarranger#arithmetic_arranger.py
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0
.
Challenge: Arithmetic Formatter
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
ilenia
September 26, 2020, 9:53pm
#2
I am not much expert in python, but are you sure that’s right syntax for your return statement?
Hello and welcome to the freeCodeCamp community~!
It looks like your code does display the solutions to the problems as intended. The tests are seeing a spacing error.
Thank you for your message!
Yes, it is right syntax. I initially thought I had a problem with the if and return statements at the end of my functions and did some experimenting trying to fix it, but in reality I wasn’t careful enough reading the error message: it was a spacing problem.
1 Like
You are absolutely right on that. I needed a fresh pair of eyes!
Thank you very much