Ask coding questions

← Back to all posts
console not run
mikecastellanos (0)

the console does not work !!!
in a reply I have two files the first is called "main.py" and the second is called "funtion_iot.py" but the console only runs with the instructions of the file "main.py", the second file "funtion_iot.py does not It does not run even if I create a single print ('hello') it does not show it in the console. I do not know if I gave it in any button in replit that is producing this for me.

Answered by Coder100 (18925) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (18925)

it will not because python will only run main.py.
To run something other than main.py, either import it, or read this: https://docs.replit.com/repls/dot-replit#configuring-the-run-button