Good time of day. I would like to know about __main__ and __name__. Let's say I have a main file and a second file. If I import a function from the main file into the second one, and run the second file, does it stop being __main__?
I tried to run the main file after I imported the function from it, and in it __main__ == __name__ could you explain to me why this is happening? And one more question, did I understand correctly that it is not worth importing anything from the main file?