What does if __name__ == '__main__': do in Python?

preview_player
Показать описание

--

Music by Eric Matyas
Track title: Cosmic Puzzle

--

Chapters
00:00 Question
00:54 Accepted answer (Score 8564)
08:26 Answer 2 (Score 2133)
10:44 Answer 3 (Score 862)
11:51 Answer 4 (Score 601)
16:03 Thank you

--

Full question

Question links:

Answer 3 links:

--

Content licensed under CC BY-SA

--

Tags
#python #namespaces #programentrypoint #pythonmodule #idioms

#avk47
Рекомендации по теме
welcome to shbcf.ru