Professional Documents
Culture Documents
Python Assignment
Python Assignment
Python Assignment
paint (o - msq)
yabbit_ Couwnl (legs -a * heads)/
Chicken- Count heads-y abbit- Co unt
pxint Cint (thicken Count), int (nabbit lount ))
Wyite a
Pylhon progiam o Jind and diplay
the product of thuee posi tue inlegy vaes
based On the yule mentioned below
dhoudd display the pxoduct o the
values ix ept when Dre o the ir
Value
proqnam -
de ind - paodut (num ,
num a, num 3) :
M. KUMARASAMY COLLEGE OF ENGINEERING, KARUR.
pxoducto
Tl Cnum !=1 and num a! 7 and num 3!=1):
pt odut numi * num 2 num 3
alil num ) ==1):
podu ct - hum Q * num 3
produ et
num 3 -
il Cnum 3 = =1) :
Product e-l
etwtn Produt
pxoduct ind- product (3,6,1)
print (produt)
A eachey is in the
paoess o gunejating
posu baucd On the matks
the
dtudtnto class în
Project based OBsessent .
Assume that the maks ol hey 10 &tuden
the
class, a
Out yeturn many have
toxed
o in The
orte
d
the manyd
loxa
mrks populaled 1he list.
e
Tmplement G haue tHoco d in in
a
maks kind QUAVage
mk
o how haue maotks
who Find dame
': , many be
) populat
The to dtudent
auetage :: the many have
diortd
dtortd the to
g9am ) dhould
tuple rquny d
doe
How dont D
rom
pro untieu- an
how
&
hould
bs
be
a o psult&
yeturned
)'-
in
avilable
e Python th -
the
peventage haue incrtas
ing
ordir
oe xample
3 Sont_manks
jollaudingm thanbyenyate many
ind- dtudent
25.
o wyite
a The
vales
|: the mo how haue lst
3
M. KUMARASAMY COLLEGE OF ENGINEERING, KARUR.
(Pxognam
list. ol_maks (12, 18 25,àh, i5, 18, ao, a0,31)
de ind- moxe- 1han - auerage (J ?
globad lat- o-maks
marks 0
Count 0
on xin list
ol-mar ks:
QueMage = matks | len(list-o- manks)
{ox x in list - ol -
maks:
il x> auerage i
Count t
parentage - (lount *L00) / en(list ol -manks)
aturn parantage
dul bont- maks D:
globat lit. of marks
Count t 1
tug append (lount )
Continue
ix in lút:
brtak
beak
aturn output
|=mp to "
mo to !