You are on page 1of 8

PYTHON-UNTT- 20R91AC SD9

NAME DHORN ALA BHOp ChAvA EDDY


ROLL N0:
2.0p21AOSD9
RANCH: CSE
SEC C
TyPE ASSTGnmEnT
Sue YTHON
SET

SET-I
what y am
(eriov. 6ylain deaulu
Cuertisn handling in Py-thon wiih
nam Gnamyle Puo9 Jia m

6uuention:
An J v O h a t o t Juun- ime
Co)owwne eneiutiSn Cnoww aN
Cuertienw
An euuertion N am uent whuh ocwu
d u i n the euutien a a Puogam
anddúsuty the nomad
Puogam imtJuutionw
wiu eal oiih he
hanoure Cncerdiev
20P21AOS D

entien hamdling:
tu
N The Paoynole hamduna euoJUW
ake the ogam Jwlut
whenn he e JUD JU Can e hanolled ey
we tolled EnLetuony

To handl thee w houe rey

eneert
inoly.
9the thirkyv
pgaTvme Thky Ahe hat
Mat
uogam wmLaked and
o
wmtain
AY Code.

Aynta:
totemerly
Gernt
Theenent block ueu ath m
ntetiow hot i aued
tu
hAok.
hen thou m Cneerdien in
the
uy hAek, then y he terdbok
N Un ted,

144ndo
Let
4totemery
20021US D9
imal
ivally hlock iv olwouyy Enoukod
Uemetine o twhetu there
Cnttiv oY o t

ntam:
mouluy
1lakemendy

int (*Raiuima, uentien..


ue olue Esvw

prwint ("Euetitm Aaughl.. i


imally
Pumt (" Perkoaving tlean
OUTeUT -toly.
Roil im mentien
uetion taught
fesgoumina dean tp im
Jimally

3
20R2 AoS D
ow to ohien otsuautien An y tho?
Q y -thon PJWg a m
uld
altacienn

nython ,oltrodien can le athiened


al1tsaut lanev ra
interale
HAJaut day tomtainy ony -deelaralisn
mo deinitiv

ToCJOate he olAtSuat law we


ned
Ale deeoato Colleol altsuat
etod
ho Co) Fo
ahiee-altsaitim
eedtu mrwJt
u
abc woule.
ontaim Umal mathedy n d
o t sot e o d y
The muomnlete
methody ene
Ahe Thild la.

E mot edone
hild daw
ouS1,
ynton:
m abc
impost ABc
dlan lan Name
(PBc:
20p21 AUs D9
Psuo9 nam fos odtJuaut tlaw:
e m Qbe m o t
claw ACAs):
at-toat method
da n (Ae):
Paw
abtsatt method
da (4el4):
ow
law BA):

dal m. ( 1eu ):

Punt(" m, () m
Pta")
ole m,(ARu
wne (" m) t m bUaw)
b- BO
b. m
b.m
oUTOT:
m
ma 3 Uay
20p21ASD9
3.
3. Wite Pythoniu ede Uoud
pJoioding
methodv add-- --
- -

,
O n d .mull.

solOneratas ue oading9
e kmoe hat am onUlws Ay -9

mlo hat Peomw ome outin

onerato that Peom


oooiuton huotiew whenn wtd

whew an vrOrrato Cam


eo m dBtent
altieny , t audA Cnhibd Poly.
moy im

- add-
ouelsadolng +oneuatos
otjeti
aw BookX
da-nit- -

(e, PaG);
1 pougej Pogey
da -odld-- (
ARAOthes):
Jetiww AR- ooey t 0tho.
poqe
Claw ootN:

da-Amit - -
( 1eb Noge)

6
2002 os D
b oekX (ioo)
h Bveky (\sd)
uint (TOto agey", bth,)
OUTUT:
Fotaf -ogu 2S0.

Celoadung oneuatos w ut -

aw ookX

AeA page Pages


de -- -

(4elf, othu):
elm 1el.(aeo othe poge
aw B-och y
de mat -- ARl, Poge)

b Ovkx (i0o
b ove y isd)
Punt (T-otal
Poge -b)
OUTOOT:
Total ?o9y 50
2OP21 Ao5D,

eatos

law Pay;

ole--mit-- (Ae, ouy)


1R Pay- Pay
law Am 1et:

oe- mit - (ARM, doy)


e.dLauy dlay
--
mul-- (1RUDth
val = R dau 0ho.fay
Jetwm Ja
P o y l u ooo)
t- Timne1hel30)
Prunt ( alay",t* p)

AalaY I20000

You might also like