Why I can't run my second file
AshkiKudzma (12)

I want to run my second python file but it always run whatever i have in main.py but not in second file i made.

You are viewing a single comment. View All
paulfears (77)

that is because multible files are designed to be object oriented
you can run the other file by turning it into a class or function and importing it with the import command

or you could add this to main.py

import os