So, the main difference between a module and a script is that modules are meant to be imported, while scripts are made to be directly executed. On the other hand, a plain text file, which contains Python code that is designed to be imported and used from another Python file, is called module. Scripts are always processed by some kind of interpreter, which is responsible for executing each command sequentially.Ī plain text file containing Python code that is intended to be directly executed by the user is usually called script, which is an informal term that means top-level program file. This is usually a simple program, stored in a plain text file. In computing, the word script is used to refer to a file containing a logical sequence of orders or a batch processing file. Upon completion you will receive a score so you can track your learning progress over time: Take the Quiz: Test your knowledge with our interactive “How to Run Your Python Scripts” quiz.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |