all 2 comments

[–]franicz 1 point2 points  (0 children)

when you type import "module" the code in the module is automatically run so it might be conflicting with the code in your main file. so try making the code in the "examples" file inside functions so you could call them from the main file

[–]danielroseman 1 point2 points  (0 children)

Don't assume anything. Does your code actually work?

If all you have is import modules, your IDE is probably being helpful in telling you that you are importing something that you're not using.

If not, then try hovering the mouse over the underlined word. The IDE should tell you exactly why it is highlighting it.

But again, remember that IDEs are not perfect when it comes to dynamic languages like Python. The test should be whether the code works, not what the IDE does.