Skip to content
Sign upLog in
← Back to Community
New file not running
Profile icon
hbutt96

Can anyone please let me know about this issue I have encountered,I added a new file named as(operatorprecedence.py) in my existing repl but when I run this file,instead of this file the code from the main.py file is running.Why is it so?

Voters
Profile icon
AbdullahAbid5
Profile icon
hbutt96
Comments
hotnewtop
Profile icon
[deleted]

Whenever you press run, it always runs the main.py file. If you want to run the code from the operatorprecedence.py file, you have to use the import statment, in this case import operatorprecedence