Scientific Computing with Python Projects - Arithmetic Formatter

Tell us what’s happening:
Describe your issue in detail here.
I am having trouble passing the test parameters and I don’t quite understand the testing error messages. I think it’s saying that there are extra spaces at the end of the string, but is used rstrip() so that should have been taken care of.
It may not like the placement of the answers. My assumption is that the testing is only assess the output and not the code itself.
I believe I completed all the parameters of the project. I can’t figure out the error messages.
If anyone looks at my code, my apologies for the cryptic variables and convoluted logic.

Your code so far
https://replit.com/@TylerKenney/boilerplate-arithmetic-formatter#arithmetic_arranger.py

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: Scientific Computing with Python Projects - Arithmetic Formatter

Link to the challenge:

You have 4 extra spaces at the end of every line.

You shouldn’t provide an argument to rstrip

Thank you. I realized I didn’t assign rstrip back into variable. Makes sense now. Thanks again!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.