Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Date

Page No.

Chapte- 6
Ga ting steted uith Python

Pgzaming concepta A
tleu aingfot'ouinyoncepts.

Procedunal obl ecd o'fel eblet baed


Proeniy
toncent
concept

Concept hu man Letws


etus eias en h

is COncept cwas Lued

The itlen ing


hav'nclesedy alatel nstwstiös
twhich to vaie us dapes c ienmpltxihy
ates

Advantaq The sinspd nudhad t rie grasz2.


eecutS jn
uithout ycomply
Disadvantage
Snstwios ulated
eathothe
Code also
As the RTOgrdM enecutd seiay
skp pazdaa
cletetn cmd Coecton es
typica task

ne was
Veny difficat
Yrbarans updatisM asnat ea

60pa concegts
into

DDpg conce pt
Ia ths Concept the naain
2 toneept data athy tha

minmised

dhid
exect
Concept able e
Date

|Page No.
erYO cdetection ahd CBCcdion bccoyss
Prcaanmexdenton and umoval alse
becomes Lay thih
N

0OPs can(tgt povideive basic concepf


AbstHoction
Encapsulation
ihenitonce
dala hiding
PoymoHp his m
5modlakity
Abstnat'onI atates hat he use
ddata wt be septtated
Irom
By dhetlpofhis Comcept the
Upteram achie ves te fast and e fficie ut
eecuion

He he Exampe The best csaiarle


plain
of AM Machine.
Date

Page No.

Encapsudat'onThe
teem enapsulation l
oleived encastulate whieh napany
otlevantdatadatan omodulo
binding
Abstractien is achieve d by he hlo o
ehcpsalaton

daa hiding
nonyeQued data
be hidedrom the ue dwning exeCutin
Excspl, ’ ATM
nheitan ce This coneept been taken
Lrom thu a le Gencio Lehich
status that he prepeYties of pant
inheyited
pM0q1am he arep cbJects
lcxeases a clas. hioperieso
apaentaas cambe inheited n
childolars
wo tid t pqnam crchieves
teumextend is sed te nhey)t on
Llas othey
Date
Page No.

sutentdas clas A

subelass/class B extends A
child cdas

The lass pia inheyi 4ing ttu pregertes


cfealony ith ts
And clat c wll be houing he
DAOpAnties o all theee claks esEe r l s

tcnsitivenate of nheitence

Polynabsbisrmeans many ond m0HbhRsn meams

ways an hnction rdho d


COn be cusedd in m0ne than n ways dhen
this is Known eperaknslmethid'sprlmonlbic

to wnite shart code withs


vala bles CS re Vaniabe conbe
Date
Page No.

fo ecanmple:
luncten
9dditian

Contateheen Qt = h

Madulanity -The tenm


donived Vyom mndules
modulans
ehich mas

Tais concegt atales that a Large pra hlem


wil se dividedip decompoed in several
suh pats hich is Known

| helps in erMO4 Anding nlcoer ten


Aindig
pMevide 'ibity to the
prognam
Can be achived
methes clases
Example of 66 ckJet criented langgs
C+*ava, Python
Date

Page No.

Cbdect Batsed Lunguage


TÊ awy ang uage clots nesppent
fnhettomce cndpolymonphigm hen
Known
Languag
Exanjles
visLal Basic cnd Tava sipt

Py then - Puthen ws deve loped y quido van


Rosu m in199| .
based ABC language cnd
modula 3

Aduandages
Its complete ness- it ia hewing nany in- beil!
funhens Py Bon Couhs
completenthenmslves

Cn vies plat fans


CA cHoss plat gonna LanguaQe
indexpretd Language I makes
to

'be
plalfezm
used in seyeal
olevelopent davelopnan
Disaduandaaes
aun TnterMeted language ts
Seing not
have esibaniesthanJave e
* I t is not asstreng
convartakle due to lack ef
n8t easly
sqntax. vaious tth
is uhen lik
Pythen ia avcilable in
pichaNm, anaconda, spicey IDE
Ceythen LDLE
disti butien ete.

in Pyhon

Can be don in teo mos

2.
korattive
Schip t mole

intratve moole
is typed at ane tneAnd pythn exetutia
thatceAmand hen and thene pnovi des Hie
eutut
prompt (>)>) sefeu
Command

Lt provtclea imidiateslty to u,
Longuafe
ye ongsensitive case
mede default tle ismadeLateracte
ken epdule mo wsi'ng
pmegro e Nning by difnt
displagd Hie iefgraqam
deill window cuted
The
sawecl then cnd Syrtax
Pythen sing tped be eprogiem
is The
tue for pragram
cafabity
to the prouides
Can emode this Dn :- mode Scnipt
cealey becwse
it time at
proqam conpleti not
putue for pregiann
fo
able not mocle teractive în
Date
Page No. -

En inteHactive mode
tint '2 as)
>> print (2+5)
Pnint (uelom e ")

bint (a*2)
4

baint 12/2)
6.0
bnint (2 (/2)
6
brint (13 /2)

þrint (3 //2)
bnint uelcoe?
wwttone
hint (

You might also like