Sqltable2223 1 4

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

COMPUTERSCIENCE

PRACTI
CALFILE
(
PYTHON)

NAME:
CLASS:
SCHOOL:
ROLLNO.
:
I
ndex
Sr
. Nameoft
hePr
ogr
am Dat
e Pg. Signof
No No. the
. Teacher
1 Progr
am f
orfact
ori
alofa 4
numberusi
ngrecur
sion.
2 Wri
tear
ecursi
vecodetofi
nd 5
t
hesum ofal
lel
ementsofa
l
ist
.
3 Program forFibonacciser
ies 6
usingrecursi
on.
4 Readat extf
il
eli
nebyl
ineand 7
di
splayeachwor dseparat
ed
bya( "
#").
5 Readat extfi
l
eanddi spl
ay 8
thenumberofv owels/
consonants/uppercase/
l
ower casecharact
ersinthe
fi
le.
6 Createabinar
yf i
l
ewithname 9
andr ol
lnumber.Sear
chfora
givenrol
lnumberanddispl
ay
thename, i
fnotfounddi
splay
appr
opr
iat
emessage.
7 Creat
eabinar
yfi
l
ewit
hrol
l 11
number,
nameandmarks.
I
nputaroll
number
Andupdat
ethemar
ks.
8 Remov eal
lthel
inesthat 12
contai
nthechar
acter'a'i
na
fi
leandwrit
eitt
oanot herfi
l
e.
9 Wr i
tear andom number 14
generatorthatgener
ates
random number sbetween1
and6( simulatesadice)
.
10 Wri
teapythonprogram to 15
i
mplementastackandqueue
usi
ngali
stdatastruct
ure.
11 Progr
am t
ocheckwhet
hera 16
numberi
spri
meornot.
12 Calcul
atetheCompound 17
I
nterestforaPr
inci
pal
AmountonaRat eofInt
erest
foraTimeSpan.
13 Wri
tearecur
sivepyt
hon 18
pr
ogram t
otestifast
ri
ngi
s
pal
i
ndr
omeornot
.
14 Wri
teaprogr
am tocount 19
numberofwordsi
naf i
le.
15 Wri
teaprogr
am t
of i
ndthe 20
mostcommonwor dsinafi
le
16 Writ
eaprogram t
oper f
orm 21
r
eadandwr i
teoperat
ionwith
.csvfi
l
e.

Progr
am1:PROGRAM FOR FACTORI
AL OF A NUMBER
USINGRECURSI
ON.
CODE:

You might also like