Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

Why might a Python module have the following code at the end: if __name__ == '__main__'?

Code that is written after this statement is executed only when the module is used directly.
Code that is written after this statement is ignored by the interpreter, so comments are usually added after it.
Some of the viruses that infect Python files do not affect modules with such a statement.
This code prevents a module from being executed directly.
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon