Python Introduction
- Python is a general purpose high level programming language.
- Python was developed by Guido Van Rossam in 1989 while working at National
Research Institute at Netherlands. - But officially Python was made available to public in 1991. The official Date of Birth for
Python is : Feb 20th 1991. - Python is recommended as first programming language for beginners
Difference between java , c and python
Eg1: To print Helloworld
Java:
public class HelloWorld
{
p s v main(String[] args)
{
SOP("Hello world");
}
}
C:
#include<stdio.h>
void main()
{
print("Hello world");
}
Python:
print("Hello World")
Eg2: To print the sum of 2 numbers
Java:
public class Add
{
public static void main(String[] args)
{
int a,b;
a =10;
b=20;
System.out.println("The Sum:"+(a+b));
}
}
C:
#include <stdio.h>
void main()
{
int a,b;
a =10;
b=20;
printf("The Sum:%d",(a+b));
}
Python:
a=10
b=20
print("The Sum:",(a+b))
The name Python was selected from the TV Show
“The Complete Monty Python’s Circus”, which was broadcasted in BBC from 1969 to 1974.
Guido developed Python language by taking almost all programming features from
different languages
1. Functional Programming Features from C
2. Object Oriented Programming Features from C++
3. Scripting Language Features from Perl and Shell Script
4. Modular Programming Features from Modula-3
Most of syntax in Python Derived from C and ABC languages.