Beruflich Dokumente
Kultur Dokumente
ChapterIntroduction
1
to Python
Introduction to
Python
Today’s Agenda
An Introduction of Python
• Necessity of Programming
• What is Python ?
• Important Features
Why Do We Need Programming ?
In Python
print “hello ap2v…”
Add 2 numbers program…
In Java
In C
public class Helloap2v{
#include <stdio.h>
public static void main(String[]args)
int main ()
{
{
int a=10,b=20;
int a=10,b=20;
System.out.println(‘sum is ’ + (a+b));
printf (“sum is %d ”, a+b );
}
return 0;
}
}
In Python
a,b=10,20
print “sum is ”,a+b
Dynamically Typed Python
Statically Typed (C/C++/Java)
In C
• Need to declare variable type before using it int a;
• Cannot change variable type at runtime a=10
• Variable can hold only one type of value throughout its
a=“Ap2v Solutions”;
lifetime
Bridge Commander
Civilization IV
Battlefield 2
Eve Online
Freedom Force
Etc…
Why Should I Learn Python ?
Most Popular Programming Language in World
Contact Numbers
+91-124-4364210
+91-9210-333-323
Email Address
info@ap2v.com
Address
C-20, 2nd Floor, Sector – 2, Noida – 201301.
Landmark – Nirula’s
Contact Numbers
+91-120-4324774
+91-9711-703-453
Email Address
training@ap2v.com