Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

PYTHON

Introduction to PYTHON
Now a days python is the most popular
programming language. It is the fastest growing
programming language. Python is a very simple
language to work. It is easy to understand.
The concept of PYTHON came into 1989. From last
few years python has become so much popular. In
python we can solve complex problems in fewer
lines.
Basically in every area python is being used right
now. The main areas are machine learning , data
science, AI, software developer, web
development , software testing , game
development, app development.
FEATURES OF PYTHON
1. It is a high level language.
2. It is object oriented programming language.
3. It supports multiple paradigms – object
oriented
,procedural as well as functional.
4. It is general purpose language. Almost every
field for making everything you can use this
language.
5. It is interpreted language.
6. It is open source language.
7. Automatic memory management in this.
8. It is extensible language.
9. It is a case sensitive language.
HISTORY OF PYTHON
GUIDO VAN ROSSUM create the python language.
He is a Dutch programmer. He started working in
this project actually in 1998 during his Christmas
holidays and that time he is working in CWI. In
early 1980’s he had worked on a programming
language ABC so he was having some experience
of working on a programming language or
designing of a programming language.
We can say that python is a successor of ABC and
modular programming language. Python is not
inspired from java.
In 1994 primary discussion forum was formed for
python and it was an open source project. They
can also add some features to improve the
language.
Finally in feb 1991 first version was released that
known as 0.9.0
But official version of this the first version 1.0 was
released in 1991.
Version 1.0 = 1994
Version 1.1 = 1994
Version 1.2 = 1995
Version 1.3 = 1995
Version 1.4 = 1996
Version 1.5 = 1998
Version 1.6 = 2000
Version 2.0 = 2000
Version 2.1 = 2001
Version 2.2 = 2001
Version 2.3 = 2003
Version 2.4 = 2004
Version 2.5 = 2006
Version 2.6 = 2008
Version 2.7 = 2010
But they have announced that on 1st January 2020
they are going to end the support for this version
2.x version. They are not going to support this
version any more.
So now recently version 3.0 came into picture in
2008
Version 3.0 = 2008
Version 3.1 = 2009
Version 3.2 = 2011
Version 3.3 = 2012
Version 3.4 = 2014
Version 3.5 = 2015
Version 3.6 = 2016
Version 3.7 = 2018
Version 3.8 = 2019
Version 3.9 = 2020
Version 3.10 = 2021
The latest version is 3.10 which was released in
2021.
print('Hello World')

a='Hello '
b='World'
print(a+b)

old_age=input('Enter your age=')


new_age=int(old_age) + 2
print(new_age)

num_1=input('enter first num=')


num_2=input('enter second num=')
sum=int(num_1)+int(num_2)
print('The sum is '+str(sum))

name='Abhishek'
print(name.upper())
print(name.lower())
print(name)

name='Abhishek'
print(name.find('e'))

name='Abhishek sharma'
print(name.replace('b','h'))

name='Abhishek sharma'
print('sharma' in name)

a=input('enter first num=')


b=input('enter second num=')
sum=int(a)+int(b)
sub=int(a)-int(b)
mul=int(a)*int(b)
div=int(a)/int(b)
module=int(a)%int(b)
print(sum)
print(sub)
print(mul)
print(div)
print(module)

#this is a comment for user help this comment can not be run
name='abhishek'

#comparision operators
a=10
b=20
print(a>b)
print(a<b)
print(a>=b)
print(a<=b)
print(a!=b)
print(a==b)

#logical operators
a=10
b=20
print(not a>b)
print(a<b and a!=b)
print(a>b or a<b)

You might also like