Back

Explore Courses Blog Tutorials Interview Questions
+2 votes
2 views
in Python by (50.2k points)

I am new to python scripting. Can anyone tell me what is the difference between a module and a script in python?

1 Answer

+2 votes
by (108k points)
edited by
A module is a file containing a set of functions. For example, different datatypes functions are included Suppose this module is just a kind of library. When we talk about C++ library" # include< iostream>" then it means all the algebraic functions are present in this library.

When we talk about "Python Scripts", for example, the script is a string that you manipulate after reading the whole string Similarly a term which is known as Python Interpreter that performs the reading of all the scripts and complies this scripts in bytecode and executes this bytecode to run the program.

To know more about this you can have a look at the following video:-

Browse Categories

...