Hi!
I am a new starter and I tried one code with Python and it went well, but after that, even I made a new file, no matter what code (even blank!) it continues shows same result when I run it.
What can I do to get the new result?
Kiyo
Hi!
I am a new starter and I tried one code with Python and it went well, but after that, even I made a new file, no matter what code (even blank!) it continues shows same result when I run it.
What can I do to get the new result?
Kiyo
Welcome to the forums, @kiyo0278!
Your code is showing the same output because you did not change any code in main.py
; it will only run main.py
regardless of what file you add.
To import other files in python, add this code snippet at the top of your main.py
file:
from FILENAME import FUNCTION
Hope this solves your issue.
Thank you so so much for your help!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.