My python file will execute code from another python file and when I deleted the file the code was executed from other files it gave me an error. I have so many issues with PyCharm and this is one of them. So I deleted the python file with the code that kept being outputted in other different files. For example, the code in coolfile.py had the same output when I clicked the play button in duck.py. When I deleted coolfile.py too try to get output from duck.py I got an error which I think means PyCharm is looking for the file directory of coolfile.py and executes on any other files console. It's super annoying. I did this on PyCharm 2018.3.2. Heres the error message I got when I deleted the coolfile.py or in my case it was firstpython.py
I am going to reinstall PyCharm. Very disappointed in this opensource project.