What is Python?
Python is a high-level, interpreted, object-oriented, general-purpose programming
language.
Low Level Vs High level Language
+++++++++++++++++++++++++++++++++
Human language [vocabulary, Grammar rules] [Sentence, Paragraph, essay]
Computer language [set of instructions, synthax rules] [Program,
application]
[set of instructions--> keywords, operators]
low level language: A Programming language whose instruction-set is directly
understood
by the computer without any kind of explicit translation / compilation.
Mostly the low level languages are "Machine Language" / "Assembly Language"
In low level language the instruction-set are machine specific.
Intel -instruction-set for inter-cpu
AMD - instruction-set for AMD-cpu
High level language:
A programming language whose instruction-set are not machine specific, and these
are
generalized, developer friendly instruction-set (mostly follow human language
mental model)
that can be further translated into low-level code to be understood by the
computer.
https://bhailang.js.org/
Compiler Vs Interpreter:
++++++++++++++++++++++++
Compiler: The name compiler is primarily used for programs that translate source
code from a
high-level programming language to a low-level programming language(e.g: assembly
language,
object code, or machine code) to create an executable program
Source code ---> Compiler program ----> compiled output ---> run
Interpreter: In computer science, an interpreter is a computer program that
directly executes
instructions written in a programming or scripting language, without requiring them
previously
to have been compiles into a machine language program.
Source coe ---> Interpreter program [run the code]
Compiled Vs Interpreted Programming Language
++++++++++++++++++++++++++++++++++++++++++++
A high-level programming language could be compiles/interpreted language.
Compiled language - A programming language whose source code must pass through an
explicit
compilation phase before execution.
eg: c, c++, Java, go,....
Interpreted language - A programming whose source must not be compiles seperately
in order to
execute it, instead we directly executes the interpreted language source code
through an
interpreter program.
eg: python, js, ........
Hosted Vs Non-Hosted Language
++++++++++++++++++++++++++++++
- Every interpreted languages are always hosted
- Compiled language could be either hosted / non-hosted depending upon the
compilers outcome.
- if the compiler produce [machine code/Assembly code] as the compiled output
then
the language is non-hosted
eg: c, C++, go
- if the compiler produce [object code] as the compiled output then the
language
is hosted.
eg: Java
+++++++++++++++++++++++++++++++
Python definition: Python is general purpose,high level computer programming
language.
General purpose - it means developing enduser computer applications. Eg:
Notepad app, calc app, office app etc.
High level means simple english like statements to write a program. Eg:
print("Hello")
History of Python:
Python was craeted by "Guido Van Rossun" in 1991.
It was 5years of R&D (1985 - 90)
It was created at National Research Institute for Mathematics & Computer
Science (NRIMCs), Netherlands, Europe.
Today, Python is maintained by Python Software Foundation.
It is opensource software (free to use)
Initial release of Python on Feb 20, 1991