Computer Science, asked by ziveyt21, 2 months ago

Is __name__ always equals to __main__

Answers

Answered by amrikhoreAmrik
1

Yes , __name__ is always essentially equals to __main__ by default . You can think of it as a variable - which means you can also change it whenever you want to and import into other python files .

Similar questions