Scientific Computing with Python Projects - Arithmetic Formatter

Tell us what’s happening:

In replit, I keep getting this error for pytest:

Traceback (most recent call last):

  • File “/home/runner/boilerplate-arithmetic-formatter-1/main.py”, line 2, in *
  • from pytest import main*
    ModuleNotFoundError: No module named ‘pytest’

and this error for main([‘-vv’]) , if I comment out pytest:

Traceback (most recent call last):

  • File “/home/runner/boilerplate-arithmetic-formatter-1/main.py”, line 11, in *
  • main([‘-vv’])*
    NameError: name ‘main’ is not defined

Also, I’m not sure I understand the printout format once the problems have been arranged. Will the provided test code print each component of arranged_problems or should my function print it out?
I believe my function works but due to these errors, I have not been able to test it in replit.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Scientific Computing with Python Projects - Arithmetic Formatter

Link to the challenge:

Take a look at this thread on the subject.

1 Like

Thank you!
I was also able to fix the other problems