Professional Documents
Culture Documents
What is Python?
Python?
Is a programming language.
C…….. Structure
Structure….
Add of 2 numbers?
a=?
b=?
c=a+b
Advantages of Python:
Time consumption(less)
no wastage of memory
Time consumption:
a=10
Fetch………….a=10
Architecture of Python:
RISC.
Example:
CISC.
T=0
T=a
a=b
b=T
Output:
a=20,b=10……(40 ms)
RISC
a,b = b,a
Output:
a=20,b=10…….(10 ms)
No wastage of Memory
Example:
CISC(c):
Void main()
printf(“Hii”);
}….. 1 kb………..102kb……….102kb
Python:
print(‘Hi’)….. 1kb
Low Power Utilisation:
Structure Of Python
Syn:
Memory Management:
Header files
Global variables;
Global Statements;
Main function
local variables;
local statements;
Code Segment:
Stack:
Heap:
Ex: a = 10
Ex: b = ?