Page No
Joo pathon Date
Daty tgpel:
Nuneoic
2) Dictioncu
oolean
\oickionaBocleanl lGetl equene
Conplex Luple
LNumaser
) tlumericl (Ftuat iihtgeo Conplex number
5Repreent hetc butn numbric tiatue
9 Geuence tipt Sting Lis tae)
-5Ordetd alletton of ame and diforent
tnon date tpe
Corey of loits
olechon ct one Y more charcer
P3g No
Dale
at ogcd Colleeton of amo or diffrzne
deitee types.
(otcaed b placrg Sauene in GaenE
boeckke!
Libt =LJacee]
Game as List onk bétreei's
Huple teyple
GeauENCE
Ot plce GequEne
Cot aa this
tuple = (Iackl' IJarl2')
false)
becteqt.
CollecHn of data. ypEs
unóderd has no depliate
ticlol e metcebal e,
Cocelote.
builtrin Setokanchon.
Page No
Date
Dictionoy Dai lyots'
-> unosdar Caltection cf data type.
Dictiono hold key balue p .
key tralue paios Gcprted, i colen
and kels ane Geprttettd b Comma
2:gaz"?
1
mathng foet and eon
LooRs
(rhile,
fr
baantkiny pocqam P uGed to chenge the
branching tËith Cona1tion Sfotmênt.'
23 el"e
in
Page No.
Date
eloe
bg
int("dequaldo b")
else
print Caisnt satal fo')
int i5 gretthan a'")
else
qrint ais not Csual
eeutal to lof
rreaion.
Abahile
4ubile - Ane clse Gutmint
Ahile i<6:
lahile i<6 min
Print i)
el9e
it=1
prinl(isqcta then
Page No.
Date
a Gequente
{nuits= 'pole", bcnana
printr).
the else Sletment
faulsC'agple, "banctca
painta)
else
Punt("Çinished ")
baeaele ,Continue Slestment
Nangec) funion. ( indereke dhe fer SutrkC
Aumbea6 o ttetme
fos x iAngee)
PsintCL)
dstaule hextmal flow of Prooam.
Gsacr in Ccde eatadd tnput ceta.
LxcepHon 3gmEant as chje hat
Page No.
Date
uhen eepion
Can 'oue or 'Hhaocm" the Cxcephon.
to - let you teat a oloce af
Code
exCept - Let Ou handle theeor
else - block Let tou excte. code
finally Led geu enestto the
Code in bth Ccase
tther Luaen therer
(tlaen hoes
pon)
excpt NemeGar:
define).
ontc tariable xi5nod
int(" Somdhing erorg")
rnt(" trtor Noung oreong")
Finally : ("he tg ExcupFis finished
)funcion' block ot
Cade that Porfom d
Shuel tmeot fantions:
4) Bulin. funtton. Cfrint)
Uoesdefned
2 AnongmoS funcHen( lame esSfursti,
hutonb by their angum nt
Pint CHelloU)
dee Enamec)4)
Lich dekut
det fnamel a=le):
print (x)
rgumtnt
def SumCtaxqp ) i
Lolud
total fum
Page NO
Dale
file managEmpAPnt
a Apoocess of intecacing couh files.
fanion lice edrg criirg scpnirg
and delitry
gthon poolde buit in funcion and
for Pile manyemn)
Models for
AopEnungl
file= openl"Exanplet
4 Recdingxecdc), rEedline),eudlineio)
Fte
Content= Pile,yecdc)ax file.eddline
pointlcoh tent)
file open("Example.tx4!,"o)
pile wme(" go mtti ng)
file.c[oSe.
CileopenCExumple td"a")
Ele.toritel"Somthirg)
leclo Se
Page No
Date
Exegt Xtbtentce
6)checidngy Ere fle
ifCos path.exissceacmple txt")
point CileOxist )
C"Pile hot sist)
Prin
Delctinsy' -
OS.emoye.
6 Lohâitcynce
inherikence i nachaniám
Hact cttrtoce coloo. cllooclcaseto
taheto eAmctthod&tom
)dpSGe of inheitarce.
A)Gingle .
2) malipl e
Hipachical
Page No.
Data
) Gingle'
cleas Animc:
def (Gel)
Print (Animu ')
dass eylAnimel)
detait --fGelf)
deflbente CbelfJo
d= DogS.
d baytels
d. Gpele
dmultiple
dass oi
def fly Cself)e
paint Crty)
det cwalk(Belt)a
Pant ceseale)
CLcasg (3cet ("ire Arimal
pusS
d.flyc
lehilcef
pass
tahical) (a( Clago
Jgoesplf)o def
def
o cahi
cal c ctass
dhonlel)
ford d= eto
pabo ef
(Cws forsd class
hanelGealf)8 def
(uahiaul) Car Clags
(åniue'y print
(3elB daie det
apahice class
Date
No. Page
Page No
Date
cluss lahical o
det Aee Csel):
Print(tauhica
ctass (cxr Cahicl)
def carfjatneCsel):
pzint Cod
det bice NameSalf)
paint(hendly
Class find nlamelCar bie)
d= nlame C
ALerne.
dbicenlcmel
d o Name)
d. kypel)
Page No.
Date
) Anontmous uncton CNeme legs fnon)
+deftog ithout name
inepird by lambda cdut
Ccal
tmp
Stntcx
leambda aRgament
kegsord 'nput
pesneter apyaton
Regalg funpion
prit
Þrint CGqtlG)) )2s
Qnnbdefemaion
Geprt = lambda
erintor Bant(6))23
lLse to Conjuckon of outt in funcrien
mapo, reducec),fllte
numbe)
Page No.
Date
numbce)
(2int (euen)
oom funtobl import educe
Mum L 2 345)
humbee6)
poin Cecen
pp
m capplies untronto oll aelement
Cle PIE elemend louse bn Conditon
aeduce sedace eomtetby Cenutivcley.
$) funcHOn decortor6'
modifie that modifee the behauica
of oha8r funcHOn cr metaerds
paude fumctatty fo add luncAaliy fo
ÈxiGting funciorn, taithoat modig thei
Code dibeLY
def greet ( fun3
mxc)
Print(" goodmusnirg)
unco
Point ( tankyou
Page No.
Date
def helioé)&
(orit Cheilo co)
FuncrBon 4h perneos
def gret (fun)
pzint ("uellcom')
fun(*ag *ewang5)
printl thanle youl
de add Cu b)
pnt Catb)
+addlte2)
Gutputl Cuellcome
+antthunlego
poc,tHonal angement
(Paga No.
|Data
angs Colleet
all poi Hionel aocpurn ont
aGs to he funcHon ioto 4uple
def fan (t,
print()
AunCl22)
collects call kepcaord angmen
patssedte Funchon into Dicionagy.
def funC** Pavorsa):
Leealue in kewaa4& \demsC)
foy
fun(as b=2,l=3)
Page No.
Date
12implementaton of publicPrivate and
protected.
Adef fant
cof init--CSele)
Celfname= gae!
d= democ)
ete prin (deName)
paiyate
def-ini-self
Belf.-Name=face
d= demo
|acese by hanee mathading,
rindlddemo.name
orcteted 6
detigltCself)2
Selt.name Jacl'
dzdenmoCs
print fe heme)