Sep-23-2022, 06:48 AM
Is k a module (py file) located next to your script in PyCharm project folder? By the way, poor name and also no point of importing with alias i.e.
If this is the case - the current working directory from which you run the script in IDLE is different from the one in PyCharm
import k as k
If this is the case - the current working directory from which you run the script in IDLE is different from the one in PyCharm
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs