I need help with the Arithmetic Formatter. I can’t figure out what I don’t have right in my code, but I have 6 failed tests. I have gone line by line and have corrected some spacing issues that helped one of my tests, but I cannot for the life of me figure out what I’m doing wrong. Here is the replit: https://replit.com/@ChelseaD1/boilerplate-arithmetic-formatter-4#arithmetic_arranger.py
Let me know if that link doesn’t work - this is my first time working with replit.
something in your second row spacing is way off. it’s printing a bunch of extra spaces between the first operator and the number that goes there which then throws all of the rest off.
in fact, it’s happening between all of the operators and numbers on line 2. The first one is off by 1 space, the 2nd one is off by 2 spaces, all the way to the 5th one being off by 5 spaces.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.