Topics quiz | suggestion | imports

Hello,

I was trying to solve the topics quiz and although my solution was working, I was getting a mark of 1. I realized this was because I was importing the statistics library. Although this library was not in my workspace, I just installed it through pip.

In order to avoid such confusions in the future, I think it would be nice to either:

  • Add a warning in the instructions not to import libraries that are not already included.
  • Prevent people from using pip install to add the modules they like :smiley:

All the best,
Kostas

Hi, thank you for your suggestions! A warning could definitely avoid these issues in the future.

The grader does not subtract points, it just runs the code and awards marks if it works. The problem is that the grader workspace can’t include every library, especially in this simple quiz and one that is not a standard Python import. This is what might be causing the failures.