Professional Documents
Culture Documents
Adobe Scan 15 Nov 2023
Adobe Scan 15 Nov 2023
and oheck
functien for inpul a
haue many uouels present in hat st£ng and csunt
sauxceCode
de< count ()
= input (Enten &buing of line i ")
y = ' a ' , ' e ,'o',u, ',E',L CO
s i in yi
pxant()
Qutput i
Enton stuing of line i "Rahl"
pxunt("Euen")
else
pint ( Oda")
a int nput ("Entex")
b: int (nput (u Enton ")
C= int (input ("ntex ")
d: int (input ("Entox ")
int (inp ut ("entox ")
y- abe (asb.c.d)
abe (a. b,c.d)
Gutput r
Entoui
Teacher's Signature
Date
Entoy 9
nto;10
Entbu12
34
Teacher's Si¡
Date
elsito
program to input Y6 sctigiL no. and find sut
each digit ecuHenceand a dictisnay
Sntneductian ii hi proqram uill take 15 iqit
Cnput and then he ed in a dichonaey
and
coLuntod csing lacpa
KiowceCodei
a- int (input("nien 15 digit no ")
pint()
abe a)
Teacher's Signature
Date
def abe
if i=j
if i nat in a
pxint(z)
abc()
QutputS29SSTGSA3Is49G321.
355,2:2.9:2I6342,3:2.112
La-lLL2,3l.[4,5,6].s.sl
def sond(a)
foiin oange (3):
fon in oange(s)
pnint(e)
def sold (a):
fo i in nanqe (3):
fon 4 in nange ():
dedsatllil
pint (a)
sord(a)
|tput
Teacher's Signature
Date
the
anal walues f left dingoál matuiz ond then sum up
ature
Date
soxce Csdei
lazLi,2,3.S,9,H, 6,S, 4
Qutput
i3,9,G,
Teacher's Signature
Date
if q ndex )22=20
append )
z =tuple ( )
pxint(z)
Lodd(a)
Qutput'
(2,9,4, Ssu)
Teacher's Signature
Date
doCelodei
def abc 0:
a= ínt (input" nter a number;")
b=l
fore i in Range (1a+l):
b= b*i
pnint (o)
def yz( (nput ("Enten a list of numben )
d- int
fon i in ai
print (c)
pxint( fon factonial. 2fon Sum of list of number")
on 2;)
nput Enter choice 1
4- int
abe)
if y==2:
Teacher's Signature
Date
Expt. No.
Page No.
Qutputi
4 fonfactooial. 2foe sum of digit of ist of nurake
ento choc cn 2
120
housto
cue haue loaunt
Conclssni AAom ths progAam ceethch ue haue
menu dyiuon theaugh
t o hooe and t mil dsplayAceE
to
Date
Expt. No.
Page No.
puintch)
def mn
m: cnt (unput (u Entor the num box"))
n- int (nput (u EniH baxe "))
phint
def ye ))
x int (input (Etex numben
4 math squt (x)
Teacher's Signature
Expt.No.
Date
Paye No.
if d=-2:
mno()
ele
Qutput'
Sntoy choice
Ento the numbox
25
onclusion hi
pgam ill hetp userto
Lnathematical fuctien numkn
pefomn thyoe.
Expt. No. Date
Page No.
Ceeate
betucen 4to6 enpogam to gnaate andom numko
Satodctisn i-
to geneale
Thuoughttis ce ceeell gel to know
caudomnumb0 belcon4to and
displays any nunko
Mndomly
Mouxce Codo :
Ldef abcO:
Lmpatt andom
Hint antom Mandi t (L6)
abcc).
Qutput'
Teacher's Signature
Date
owce Coto'
Qzopen["aba: tt ",'n)
fon ?inb:
C=i spùt)
for in e
pent (¤ #)
Output
bo tezt T am Rohul
playing cxiokot
T# an# Rahul H
I# lou #playing #t oickeltt
ile harding puogxam Ehas a tet
ile cuhich itox alod by fox Labp
Teach
ExptNo. .
LdotalA
be a= Sntoductin
ttuccnt
details deaxn
af us
ouHce
code cseHLate
intinput open
pickle
le)
dump 4 NE haw
nput (abe.dat
Hange
(in
h) ( mest to a
input
nput to Cetenpython
:contain
{"Enten ("("Endor Jhxogh
cxeai
"Enton Enter ","cub)
dumpl.
cesengby puoguam
no
a thisa
RoluAame. no
name)
maka
toll
stucdont binay
peeqkam
stcdent
to
") no.
ueate
)
detaila file Manka)
ue cetreels
uhih uill a
)) binay PageNo. Date
otoes be Jtudent
file
gong
nino uuhuch
to