Difference between Python Programming and Python Scripting

The Eduladder is a community of students, teachers, and programmers just interested to make you pass any exams. So we solve previous year question papers for you.
See Our team
Wondering how we keep quality?
Got unsolved questions?

Ask Questions
Programming-the-Web10CS73-unit-2-->View question

Difference between Python Programming and Python Scripting.

Explain in detail.


Taged users:


Be first to dislike this question

Talk about thisDelete|Like|Dislike|


scripting refers to the automation of tasks that could be manually done one by one, by a program written in an interpreted (rather than compiled) programming language. Coding is a more general term, but I assume that you means what is not scripting in Python : it is writing Python modules, i.e block of codes that can be reused in Python scripts or in other Python modules.

For example, the following hello_world.pyis a script:

  1. #!/usr/bin/python
  2. print(“Hello world !”)

Under Unix environment, you can execute this script : the first line calls the python engine, then all other instructions are executed by the python engine.

The following example Hello_world.pycan be used in other scripts or other modules (even if I doubt of any use of this), but will not execute anything by itself:

  1. class Hello_world:
  2. def __init__(self):
  3. self.hello_world = "Hello_world !"
  4. def run(self):
  5. print(self.hello_world)


Be first to like this answer

Be first to dislike this answer
Talk about this|Once you have earned teacher badge you can edit this questionDelete|Like|Dislike|

Can you help us to add better answer here? Please see this

Not the answer you're looking for? Browse other questions from this Question paper or ask your own question.

Join eduladder!