Adobe Scan 24 May 2022 (1) (1)
Adobe Scan 24 May 2022 (1) (1)
cef sunca
Tectygn a
a 10
auncCa)
Printla
nd iPA2
b-funclb)
Printlb)
O 155
def functa)
a a t10
etu7na
|tunc(a)
pmmtla)
Ol 25
SPS
22
cdef sqa)
Teun7e
Pinica)
2-1)
det A):
primtA)end= 66 )
def BO
Print B, end 65 9)
AQ
del co
BO
pnt(Cend
BAC
a= 14
a12
print la)
SPS
a= 14
def Fo
lobal a
a12
fo
Pint (a)
b 12
1
Q14
def f0
Q12
7edyrn a
af
Pni la)
o 12
719
SPS
9 20
oel unctio o,b c:D
reuyn at b-C
Value function.(lo, 12,5
PitCValue)
p212
7:2)
det unctimla,b.c1,dz5
7euzn Qdbrcld
yalue= tunchiomLL,2,d:)
pintlvalue)
32
Q66
Pript ([l:3)
62)
a5/62
Print la)
SPS
Q:66,2
ate)-q
Print Ca)
b4,5
dzCab
Print (dLo1)
96
a-1,2
b:4.9
dab
Pnmt ld23)
>4
Print (min(a)
Op ab
9 10
Lcdet sun-muubiphy Gb moze)
Sum-vauez a b
m-value 2 q¥b
fo 7 n move
Sum-valuet 9
m- vauet-7
reurn Sum VaUlue, m-value
S7 Sum-multiply l 34)
Pint S. m)
P2
913
Prin+ (d:getO, 5)
op> 9 5 SPS
da2, S ab e': s, defi
Prrmt (d Tea)
p n t ld:getC0,5))
d-112,6abe??: 5, 6def");4}
9 2 ind
print (pre sed)
elze
printlWot Presend')
ol 2vNot present
2
S)23,54,2,3,
í
p i t (encs), emd: )
S.add 4))
Sqdd C(3)
Printlen cs))
LOp2 5 5
AnobjeCb
9:3
Tn pndhan, a dlass 5BLUEPRINTtor a Cocyede object
Ah?
Clas eArnphcla
s1=gampleclas)
oedatdr ls1,bage',23)
Seatlsls4, 67ame", 6John oe2
s:genderz Cmale
SPS
Lprintls1-dict.-
O2 age;23.6name 6JanPoe2 égende1':6mue
class studensi
me66 Roham2
a1shident)_
99sude nd)-
Pint(s1-2mame, endz 5 )
pzintl$2:2ame, end:66 2)
s2tuded)
ppk0
rint Ls1pp)
P2 122
SPS
cla cbamge i
det-init-(self,x9,2)
9elP.a 2d9}z
2 2 chamgeCl 2,3
etccbr (z, Sa)
Setadtr (x,6ay2
print laa
9
olpa NOY-
6lb2tYro
913
olb Rohan 60
SPS
Q 22
oP> Kohan 0
92
Op 7ue
to
4ile-abj 2open"anlaads/sampletrl, 67?)
ilb-dadazfile-abjzeadlinésl5
printle. dauka)
9 2 LlLorem ipsum dol o7 sit ameb, Comsectetur
adipscing elt Viyam Condimentum Stg/ts lacs
laoree uctu uzwla laoree u Vestibulum ulko
Co7pey accum39n velit vel vehicula, Proin temp
Lacus q Cu Wunc at
tile-obj 2 0pen.ownloadp/sample.txt )
file-data ? file obi. readunes)
Lprint Ctile_dada)
ile-obi clo5el)
0
03h Openl' omloads/vegr20/7.csv') as tile-oj
le data 2hle-okj. readG nos
file-ist ust(thle-dada) SPS
Hoz column mfik-list C
Pint lrolunr)
pzint lenlcolumn)
impat CSV
ith open(Downloads /yegr2017.GY)a3tie -obj
CourrbyyEJ
|tor ro m tile-Ust Ll:
COunty append(rosI3J)
cOun
103
m p o r t c3y
wgUndedpeople.append(float(val))
printint (sum(woumdedpeople)
224422
SPS