001 Introduction-To-Python-Programming-Langguage
001 Introduction-To-Python-Programming-Langguage
PYTHON
Python Programming Language
High level programming language: A programming language with strong abstraction from
details of computer.
0101101010
a = 10
1010100101
a = 10 + 2
010001010
print(a)
1011010101
Hence programmers who write machine code use a more readable format such as
decimal, octal or hexadecimal.
The above format, although better than 0's and 1's is still difficult to use.
Hence, assembly language was introduced which provided one abstraction level on top of
machine code.
Assembly Language
To reduce the difficulty of writing machine code, assembly language was introduced.
C Assembly Machine
Computer
Human
Mid-level Low-level
programming programming
language languages
Python: High level language
Python is a high-level language because its syntax is more human readable compared to C.
Python is a general purpose language
A programming language used for building software in a wide variety of application
domains.
Python is a GPL because it can be used to write desktop software, create web applications
data science, ML etc.
DSL are used within a specific area, i.e sql can only be used for querying relational database
and nothing else.
Python emphasises code readability
Python gives special importance to code readability.
in programming languages like C,C++ and Java indentation is used for code readability and
formatting.
Also due to this, a variable can have different type at different times during execution.
Example, let's say when you create a variable and store a value in it, we are essentially
saving some data at a memory location.
When the program is done using or working with this data, the memory location is still not
freed.
The programmer has to manually free up those spaces/ memory locations which were
previously allocated.
Garbage collector reclaims memory which was allotted by the program but now is no
longer used.
Python is garbage collected, which means as programmers we do not have to worry about
feeing up or reclaiming allotted and unused memory.