Scripts & programs | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Scripts & programs

what's the difference between a script and a program? and why is python referred interchangeably to as a scripting and programming language?

30th Jul 2017, 3:27 PM
Daniel Hisa (1,2,3, Let'sCode!)
Daniel Hisa (1,2,3, Let'sCode!) - avatar
4 Answers
+ 3
I found this discussion on it: https://stackoverflow.com/questions/2286552/difference-between-a-script-and-a-program From what I can gather, scripts are generally regarded as independent code (that is, independent of the machine they are running on), while programs are compiled into machine language. One of the comments mention that there are two general kinds of high-level programming languages: scripting, and compiled. So it's like all scripting languages are programming languages, but not all programming languages are scripting languages. He links to this page: http://www.answers.com/Q/What_is_the_difference_between_programming_language_and_scripting_language This link here: https://stackoverflow.com/questions/3265357/compiled-vs-interpreted-languages is a discussion on the difference between compiling and interpereting.
30th Jul 2017, 3:43 PM
Christian Barraza
Christian Barraza - avatar
+ 5
Thank you Trackrise
30th Jul 2017, 5:40 PM
Daniel Hisa (1,2,3, Let'sCode!)
Daniel Hisa (1,2,3, Let'sCode!) - avatar
+ 4
Thank you Sami Khan.This is helpful
30th Jul 2017, 5:39 PM
Daniel Hisa (1,2,3, Let'sCode!)
Daniel Hisa (1,2,3, Let'sCode!) - avatar
+ 3
script is a type of program which is interpreted and written to control another software or application and to automate a certain process in a specific environment (like browsers).. whereas a program is compiled to machine codes.. and you can easily view a script in a text editor to see what it does.. you can't do that to an executable program because it has been compiled.. Since python can be interpreted as well as compiled it can be used to write scripts to support other applications or programs..
30th Jul 2017, 3:52 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar