Scientific Computing with Python Projects - Arithmetic Formatter

i have complited the function and i tried every combination there was in my mind, however, when i run it on the replit domain it only tries one test, the following:
32 3801 45 123

  • 698 - 2 + 43 + 49

(for some reason in this text box it is a bit distorted but it’s normal on replit)
i believe that there would at least a few more tests to make.
does anyone know why there is a single one?

Your browser information:

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

Challenge: Scientific Computing with Python Projects - Arithmetic Formatter

Link to the challenge:

I’m not sure what you mean by single test. When you run it should run, I think, like 10 tests to check your code. Do you have the editing link for your replit to share so we can look at the code?

Also, to keep your code messages not getting distorted when typed on here, put them in between ` tick marks. It marks your text as code and translates it exactly as typed rather than translating it.

thank you lot deeply for your attention:
i have no issues with any other project, the thing is that when i run it i get this message:

Traceback (most recent call last):
File “”, line 2, in
from pytest import main
ModuleNotFoundError: No module named ‘pytest’

i deleted and recreate the replit but it still had the same result.
i m assuming that the pytest is on a different directory that the refrenced one.

I m submiting the link to the replit as you requested
(my code should be visible):

Again, thank you very much

Well, its basically telling you that an import module couln’t be located, meaning its not installed. People more familiar with the projects may have other configuration changes to make to your Replit files to make sure it installs all dependencies, but a fast work-around is to manually install the missing module. That’s what I always do without issue.

From the console of your Replit app, install the pytest module:

pip install pytest

when finished, see if it will run after that.

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