Scientific Computing with Python Projects - Arithmetic Formatter

I do not get this option " * Select Use run command and click the Done button."
i have watched so many videos on this and they all have no issues with this? must be something im doing.

something is wrong with the pytest. it cannot find it.
 python3 main.py
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’
exit status 1

Browser: operGX

Challenge: Scientific Computing with Python Projects - Arithmetic Formatter

Link to the challenge:

At the Shell command prompt type pip install pytest

thanks for the fast reply,
i have done this and just recive this message when i try to run main.
 python3 main.py
Traceback (most recent call last):
File “/home/runner/boilerplate-arithmetic-formatter-2/main.py”, line 7, in
print(arithmetic_arranger([“32 + 698”, “3801 - 2”, “45 + 43”, “123 + 49”]))
File “/home/runner/boilerplate-arithmetic-formatter-2/arithmetic_arranger.py”, line 4, in arithmetic_arranger
return arranged_problems
NameError: name ‘arranged_problems’ is not defined
exit status 1
 ^C

Do you have a variable called “arranged_problems” ?

Can you link to your replit or show your code here?

not sure how to link it but its just this link from the course.

https://replit.com/github/freeCodeCamp/boilerplate-arithmetic-formatter

You need to edit the arithmetic_arranger.py file and do your coding in there to complete the project.

This is what it currently looks like:

def arithmetic_arranger(problems):


    return arranged_problems

That’s why you are getting an error. You have some boilerplate code returning an unassigned variable, but you haven’t started the project yet.

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