Simple and easy to learn: When we read a Python program, we feel like reading English sentences.
It means more clarity and less stress on understanding the syntax of the language.
C Program to add two numbers
Python Program to add two numbers
Open Source : There is no need to pay for python software.
We can download freely from www.python.org.
Its source code can be read, modified and can be used in programs as required by the developer.
High-level-Language : There are two types of programming language low level and high level.
A low level language uses machine code instruction to develop program. High level language use English words to
It is easy to learn and use like COBOL, PHP, or java python also use English words in its programs and hence,
it is called high level programming language.
Dynamically Typed : We don't have to declare the type of a variable or manage the memory while
assigning a value to a variable in Python.
Other languages like C, C++, Java, etc.., there is a strict declaration of variables before
assigning values to them.
Like In c c++ java => int a =4; but in python a=4; no need to define type of variable.
Platform dependent : Write ones run anywhere
How Python Programs work ?
Step 1 : write a program
Step 2 : Compile using python compiler
Step 3 : After compile It transfer into an intermediate code called byte code.
Step 4 : inside the PVM an interpreter converts the byte code into machine code so processor will understand and run.