Monday, 18 May 2026

What is Python, History of Python, Advantages, Features, Applications and who should learn Python

 What is Python?

  • Python is a General Purpose Programming Language
  • Python is a High Level Programming Language
  • Python is a Multi-Paradigm
  • Python support Both Interactive and Batch Mode Execution

(or)

👉 Python is a General Purpose,High Level,Interpreted,Interactive,Modular,Dynamically Typed,Garbage        Collected,Procedure Oriented,Object Oriented and Scripting Programming Language.

History of Python:

  • Python Was Developed by the "Guido Van Rossum" in the year of 1991(Actually this Project Implementation his started in early of 1980's i.e., Dec-1989).
  • The Name Python was derived from the "Guido Van Rossum" favorite TV Fun show "the complete Monty python's flying circus".
  • He is a Dutch Programmer, best known as a Creator of the Python Programming Language i.e., he is Father of Python Programming Language.
  • Currently He is working in Microsoft.
  • the python programming language implementation his influenced by majorly 2 programming languages, they are
    ðŸ‘‰ABC
    ðŸ‘‰Modula3

Advantages of Python:

1).Simple Syntax
in python, there's no concept of ;,{},()
python always follow the "Space Indentation" concept

ex: if block representation
---
C/C++/Java/.Net Python
--------------- ----------
if(condition) if condition:
        { stmt_1
           stmt_1; stmt_2
             stmt_2; ......
   ...... stmt_n
stmt_n;
}

2).Less Code

Python programs having Less code when compared to other programming languages programs code like C,C++,Java,.Net,Go,...

ex:
---
write a C program to print "hello world!"?

demo.c
------
#include<stdio.h>
void main()
{
   printf("hello world!");
}

write a Java program to print "hello world!"?

demo.java
---------
import java.io.*;
class Test
{
   public static void main(String[] args)
   {
       System.out.println("hello world!");
    }
}

write a Python program to print "hello world!"?

demo.py
-------
print("hello world!")

3).Dynamically Typed Language

ex:
---
write a C program(Static Typed Language) to perform the addition operation on two different types of numerical values?

demo.c
-------
#include<stdio.h>
void main()
{
   int x=10;
   float y=2.3;
   float z=x+y;
   printf("%f",z);
}

write a Python program(Dynamically Typed Language) to perform the addition operation on two different types of numerical values?

demo.py
-------
x=10
y=2.3
z=x+y
print(z)

4).Python Provides N no.of Builtin Libraries/Packages/Modules

Features of Python:

1).Easy-To-Learn
2).Easy-To-Read
3).Easy-To-Use
4).Easy-To-Maintain
5).Portable
6).Cross-Platform
7).Secure
8).Scalable
9).Extendable
10).Flexible
11).Robust
12).Versatile
13).Strongly Typed Language
14).Garbage Collected Language
15).Interpreted Language
16).it support Multi-Threading and Multi-Processing
17).it support all type of database connections
18).Free and Open-Source

Note:
-----
Python is Completely Free and Open-Source Project,it is maintained by PSF(Python Software Foundation) Team.

www.python.org --> Python Official Website

What we Can do With Python?

1).Robotic Process Automation(RPA)
2).Artificial Intelligence(AI)
3).Data Science
4).Data Analytics
5).Data Engineering
6).Big-Data
7).Web Application Development
8).GUI Application Development
9).ERP Application Development
10).GIS Application Development
11).Mobile Application Development
12).Networking Application Development
13).Scientific Application Development
14).Animations
15).Automation Testing
16).Networking Automation
17).Cloud Computing
18).Quantom Computing
19).IOT
20).DevOps
21).DevSecOps
22).MLOps
23).FinOps
24).AiOps
25).Cyber Security
26).Blockchain
27).Admin Activities(DBA,Sys Admin,N/W Admin,OS Admin)
28).Gen AI & Agentic AI
29).Web Scrapping
30).Medical & Healthcare System's


who should learn Python?

Students
Graduates/Freshers
Career Switchers(from Non-IT to IT)
Data Professionals(Data Scientists, Data Analysts, Data Engineers, Big Data Engineers)
Developers
Test Engineers/QA Engineers
DevOps Engineers
IOT Engineers
Cloud Engineers
AI/ML Engineers
RPA Developers
Gen AI Developers
Network Engineers
Cyber Security Professionals

Wednesday, 30 May 2018

To print the multiplication Table

Example:

num=int(input("enter number: "))
print("the multiplication table of %d"%num)
for i in range(1,11):    
        print(num,'*',i,'=',num*i)


output:
enter number: 5
the multiplication table of 5
5 * 1 = 5
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
5 * 7 = 35
5 * 8 = 40
5 * 9 = 45

5 * 10 = 50

Friday, 23 February 2018

command line arguments in python




  • the concept of passing the arguments from command line at the time of running the python program/file,that type of arguments are called command-line arguments.
  • file name also taken as a one of the command line argument.
  • all the command line arguments are stored into list object in the form of strings, that list object stored into the "argv" variable of sys module.

Example:

import sys
print(sys.argv)
print(len(sys.argv))
for p in sys.argv:
    print(p)


Output1:

C:\Desktop>python commandlineargument.py hai siva krishna

['commandlineargument.py', 'hai', 'siva', 'krishna']
4
commandlineargument.py
hai
siva
krishna

Output2:

C:\Desktop>python commandlineargument.py arg1 arg2 arg3

['commandlineargument.py', 'arg1', 'arg2', 'arg3']
4
commandlineargument.py
arg1
arg2
arg3

Example:

import sys
if len(sys.argv)==3:
    try:
        x=int(sys.argv[1])
        y=int(sys.argv[2])
        z=x+y
        print(z)
    except(ValueError):
        print("enter numerical values only")
else:
    print("enter two userdefined arguments only")

Output1:
C:\Desktop>python commandlineargument.py 4 5

9

Output2:
C:\Desktop>python commandlineargument1.py 4

enter two userdefined arguments only

Output3:
C:\Desktop>python commandlineargument1.py 4 abc

enter numerical values only


Thursday, 22 February 2018

reduce function in python

reduce( ) support only python 2.x

reduce( ) doesn't support python 3.x

Apply function of two arguments cumulatively to the items of iterable, from left to right, so as to reduce the iterable to a single value. 

For example, 
reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) 

calculates ((((1+2)+3)+4)+5). 

The left argument - x is the accumulated value and the right argument - y is the update value from the iterable object.

x=[2,4,5,6,3]
y=reduce(lambda i,j:i+j,x)

print(y)

20

Tuesday, 9 January 2018

difference between is and == in python

"is" vs "=="
-------------------------
  • "is" expressions evaluate to True if two variables point to the same object.
  • "==" evaluates to True if the objects referred to by the variables are equal.
>>> a = [1, 2, 3]
>>> b = a >>> a is b
True
>>> a == b
True >>> c = list(a) >>> a == c
True
>>> a is c
False