In: Computer Science
1. What is a Python script?
2. Explain what goes on behind the scenes when your computer runs a Python program.
1)
Ans :- Python script means a script or code which is read and executed by interpreter line by line and by translating and execution by interpreter at a time, it is called python script.
Means you can execute a single line of code in the python but in the java we can't we need to declare class and main then execute that line means it is run by JVM
2)
Ans:- The python program executed in following scenario
Source code -> Compiler -> Byte Code -> Virtual Machine -> Running the code and virtual machine accepts the library modules.
In the Interpreter the compiler will compiles your source code (the statements in your file) into a format known as byte code. Compilation is simply a translation step. Byte code is intermediate code and platform independent
then byte code goes in virtual machine and virtual machine include the supported modules for the program and execute it.
Please let me know if you have any doubt or modify the answer, Thanks :)