1 - Introduction To Python
1 - Introduction To Python
Introduction to Python
Programming
Neso Academy
Python Programming
Introduction
Topics
Why Python?
Syllabus
Target Audience
Why Python?
Open source Cross platform
Huge set of
Huge community support
libraries and tools
Basic Python
List, Dictionary,
Introduction and Tuple Functions Modules
length = 50 010110101010100010100010
breadth = 20 101010100101100100111110
area = length * breadth 101001111111101000001001
print(area) 010101010101010100101100
int x = 10; x = 10
int y = 5; y = 5
printf(“%d”, x+y); print(x+y)
int x = 10; x = 10
int y = 5; y = 5
printf(“%d”, x+y); print(x+y)
x = 10.78; x = 10.78
o Only humans are capable to understand these languages and not machines.
#include <stdio.h>
int main() { 101010100111110100010
Compiler 100100101010010010001
30
int sum, a = 10, b = 20;
sum = a + b; 010101010101001001010
printf(“%d”, sum); 100110010100101001001
} 001010101010101010010
Executable
#include <stdio.h>
int main() { 101010100111110100010
Compiler 100100101010010010001
30
int sum, a = 10, b = 20;
sum = a + b; 010101010101001001010
printf(“%d”, sum); 100110010100101001001
} 001010101010101010010
Executable
Bytecode
Source code
Compiler
(.py)
Bytecode (.pyc)
Source code
Compiler
(.py)
Bytecode (.pyc)
Purposes:
o Improves readability. o Helps in indicating a block of code.
Error #1
Error #2
Error #3
Error #4
Disadvantages: