- 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
- Officially python was made available to public in 1991. The official date of birth for python is : Feb 20th 1991.
- The name python was selected from the tv show “The Complete Monty Python’s Circus“, which was broadcasted in BBC from 1969 to 1974.
Example 1: Print “Hello world”
In Java
Java
public class HelloWorld
{
public static void main(String[] args)
{
System.out.print("Hello world");
}
}
Output
PowerShell
Hello world
In C
C
#include <stdio.h>
void main()
{
printf("Hello world");
}
Output
PowerShell
Hello world
In Python
Python
print("Hello World")
Output
PowerShell
Hello world
Example 2: Print the sum of 2 numbers
In Java
Java
public class Add
{
public static void main(String[] args)
{
int a,b;
a=10;
b=20;
System.out.print("The Sum: "+(a+b));
}
}
Output
PowerShell
The Sum: 30
In C
C
#include <stdio.h>
void main()
{
int a,b;
a=10;
b=20;
printf("The Sum:%d ",(a+b));
}
Output
PowerShell
The Sum: 30
In Python
Python
a=10
b=20
print("The Sum: ",(a+b))
Output
PowerShell
The Sum: 30
Features of python
Python language developed by taking almost all programming features from different languages.
Feature | From |
---|---|
Functional Programming | C Language |
Object Oriented Programming | C++ Language |
Scripting Programming | Perl and Shell Language |
Modular Programming | Modula-3 Language |
Python Syntax | C and ABC Language |
Python use cases
We can use python everywhere. The most common application areas are;
- For developing desktop applications.
- For developing web applications.
- For developing database applications.
- For network programming.
- For developing games.
- For data analysis applications.
- For machine learning.
- For developing AI applications.
- For IOT.
Remark:
- Top Software companies like Google, Microsoft, IBM, Yahoo using python.
Ungraded Questions
Get ready for an exhilarating evaluation of your understanding! Brace yourself as we dive into the upcoming assessment. Your active participation is key, so make sure to attend and demonstrate your knowledge. Let’s embark on this exciting learning journey together!