My newly added file.py won't work
Hello it's my first day coding and i am not familiar with replit.
my plan was to make diff files for different lecs but whenever i add a file from file tab and try to code in it won't work it'll just run the main.py
You have to import the file. So in
from [filename] import *. Change
[filename] with the name of your file. The
* is for importing everything from that file. You could also just do
from [filename] import [functionname] and replace
[functionname] with a function, variable, class, etc.
Lemme know if you have more questions.
Good luck! :D