Introductions:
03 February 2025 07:12
Features of Python:
1. Easy to learn and analyse:
Java:
Class main
{
Public static void main(String [] args)
{
Int a=10
Int b=20
c=a+b
System.out.print(c)
}
}
Python:
a=10
b=20
Print(a+b)
2. Dynamically typed language
Int a=10.5
Int b
a=10+2i
b=
3. Interpreted Language
Boy ---- Girl
Tamil Telugu
Friend
Tamil And Telugu
Translator
Machine --- Binary ---- 0&1 ----- Low level
Translator
Human - English ---- High level language
Translator:
Convert one language into another
Introductions-Python-03-Feb-2025 Page 1
Convert one language into another
Software Translator Binary
Program
Translator:
Compiler
Interpreter
Compiler
100 lines of code
4,50,64 --- error
Error
Interpreter:
Read the code line by line
100 lines of code
4,50,64 --- error
4 --- Stops the execution
Error
Debugging
Python will use only an interpreter
4. Huge number of library functions:
1000000 lines of text
len()
Hello everyone
.upper()
7+ crore library function
5. Platform independent:
Windows
Mac Python
Linux
6. High level language:
Machine --- Binary ---- 0&1 ----- Low level
Introductions-Python-03-Feb-2025 Page 2
Machine --- Binary ---- 0&1 ----- Low level
Human - English ---- High level language
Low level language ---- 0&1---- binary
Mid level language --- commands --- Add Mov ……
High level language ---- print --- Java,Python,C++……
Print
a=
b=
7. Open source
Free to use --- Don’t have to pay
Huge community ------ Doubts, application, errors - debug -- online platforms
Website - www.python.org
Python:
--> It is a general purpose high level language that uses an interpretor to run the code.
Introductions-Python-03-Feb-2025 Page 3