Python Lab Programs
Python Lab Programs
tho
nLa
bPr
ogr
ams
We
ek-
1:
1
) Wr
iteap
rogr
amt
opr
intat
ext“MVGREn
gg.Co
ll
ege
”
2)Wr
iteap
rogr
amt
osho
wdi
ffe
ren
tda
tat
ype
s.
3) Wr
iteap
rogr
amt
oin
putav
alu
efr
omt
heu
ser
.
4
) Wr
iteap
rogr
amt
odot
ypec
onv
ers
ion
.
5) Wr
iteap
rogr
amt
oad
dtwon
umb
ersa
ndp
rin
tther
esu
lt.
We
ek-
2:
6) Wr
iteap
rogr
amt
opr
intt
hegr
eat
esta
nds
mal
le
sto
fgi
vent
hre
enu
mbe
rs.
7
) Wr
iteap
rogr
amt
odowe
ightc
onv
ers
ionfr
omki
lo
gra
mst
ogr
amsa
ndv
icev
ers
a.
8) Wr
iteap
rogr
amt
odohe
ightc
onv
ers
ionfr
omfe
ett
oce
nti
met
ersa
ndv
icev
ers
a.
9) Wr
iteap
rogr
amt
odod
ist
anc
eco
nve
rsi
onfr
omki
lo
met
erst
ome
ter
san
dvi
cev
ers
a.
1
0)Wr
iteap
rogr
amt
oca
lcu
lat
ear
eao
fat
ria
ngl
e.
1
1) Wr
iteap
rogr
amt
oca
lcu
lat
ear
eao
fac
irc
le.
1
2)Wr
iteap
rogr
amt
oil
lus
tra
teme
mbe
rshi
pan
did
ent
it
yop
era
tor
s.
We
ek-
3:
1
3)Wr
iteap
rogr
amt
oad
dtwon
umb
erswi
tho
utu
sin
gca
llb
yva
luea
ndwi
tho
utr
etu
rns
tat
eme
nt.
1
4)Wr
iteap
rogr
amt
oad
dtwon
umb
erswi
tho
utu
sin
gca
llb
yva
luea
ndwi
thr
etu
rns
tat
eme
nt.
1
5)Wr
iteap
rogr
amt
oad
dtwon
umb
ersu
sin
gca
llb
yva
luea
ndwi
thr
etu
rns
tat
eme
nt.
1
6)Wr
iteap
rogr
amt
oil
lus
tra
tel
oca
lan
dgl
oba
lsc
opeo
fav
ari
abl
e.
1
7)Wr
iteap
rogr
amt
odoc
alc
ula
torp
rogr
amu
sin
gfu
nct
io
ns.
We
ek-
4:
1
8)Wr
iteap
rogr
amt
opr
intn
umb
ersfr
om1t
onu
sin
gwhi
lea
ndfo
rlo
ops
.
1
9)Wr
iteap
rogr
amt
opr
intn
umb
ersfr
omnt
o1u
sin
gwhi
lea
ndfo
rlo
ops
.
20)Wr
iteap
rogr
amt
oca
lcu
lat
efa
cto
ria
lofagi
venn
umb
eru
sin
gwhi
lea
ndfo
rlo
ops
.
21
)Wr
iteap
rogr
amt
oche
ckwhe
the
ragi
venn
umb
eri
spr
imen
umb
er.
22)Wr
iteap
rogr
amt
opr
intFi
bon
acc
ise
rie
supt
onv
alu
e.
23)Wr
iteap
rogr
amt
ofi
ndwhe
the
ragi
venn
umb
eri
sev
eno
rad
dus
ingfu
nct
io
ns.
We
ek-
5:
24
)Wr
iteap
rogr
amt
ope
rfo
rms
umo
fnn
atu
raln
umb
ersu
sin
gre
cur
siv
efu
nct
io
n.
25)Wr
iteap
rogr
amt
ofi
ndfa
cto
ria
lofagi
venn
umb
eru
sin
gre
cur
siv
efu
nct
io
n.
26)Wr
iteap
rogr
amt
opr
intFi
bon
acc
ise
rie
supt
onv
alu
eus
ingr
ecu
rsi
vefu
nct
io
n.
27
)Wr
iteap
rogr
amt
oche
ckwhe
the
ragi
venn
umb
eri
spr
imen
umb
eru
sin
gre
cur
sio
n.
We
ek-
6:
28)Wr
iteap
rogr
amt
opr
intc
har
act
erso
neb
yon
efr
omagi
vens
tri
ng.
29)Wr
iteap
rogr
amt
oco
nca
ten
atet
wos
tri
ngsa
ndfi
ndt
hel
engt
hofi
t.
30)Wr
iteap
rogr
amt
oil
lus
tra
tes
tri
ngs
li
ci
ngc
onc
ept
.
31
)Wr
iteap
rogr
amt
oil
lus
tra
ter
epl
ace(
)an
dsp
li
t()fu
nct
io
ns.
32)Wr
iteap
rogr
amt
oil
lus
tra
tefo
rma
t()fu
nct
io
n.
33)Wr
iteap
rogr
amt
oco
untt
hen
umb
ero
fti
mesagi
venc
har
act
eri
spr
ese
nti
nas
tri
ng.
34
)Wr
iteap
rogr
amt
ofi
ndt
hen
umb
ero
fvo
wel
spr
ese
nti
nagi
vens
tri
ng.
35)Wr
iteap
rogr
amt
oche
ckwhe
the
ragi
vens
tri
ngi
spa
li
ndr
omeo
rno
t.