0% found this document useful (0 votes)
13 views9 pages

DS Practical

Uploaded by

Akansha S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views9 pages

DS Practical

Uploaded by

Akansha S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Date

Expt. No. Page No.

wYite pYogamJuak pins Hello world to ue


AC
VEen

PYoroM

pYiu Hello Wod" )

Outp
Hello world

Teacher's Signature.
Date

Expt. No. Page No.

wYe
we 0gm hat_aAk he Uney_loY a_numbeY
ndPYn he um_C h e numbe 1 Jo h

PYOYam

n . numertc l Yead ine (" EnwY a numbey: "))

toY in 1n)
ti

pint Pasle Sum ok num be rom 1 ,n


A))

Ouulput
huey a Mum ber 2 e
Sum DE_Vunhe bom 1 b 12 18

Teacher's Signature
Date

Expt. No.. Page No.

wYte
te0 rncion hat ehums he lo1ge Uement

PYogyam

mybanttion - uuion(o)R
lange man()
Yeumm_ange
ie-C(23, 12, S , 32, 10)
aun 2- myrunchon i )
print PasLe The langest elemeut in e iA i

Tue Langest eLene vnt ivn ue iE YS

Teacher's Signatura.
Date

Expt. No. Page No.

wYte unchion Hhat tes whethe o skiny


a_palnd yone

PYO9Yamn

libYaxy AHringi)
palind Yome hunttion ()tY_ye vese (n) =
a1- atinarapnE SittiS "}_
12_Poalindrome (a1)
itn2){
PYtut ( The iven Atding palind YOme "
edne
pxintTne oivem Ahring n0_alindonme ")

Output
Tae glvean Atng i palind ome

Teacher's Signature
Date

Expt. No. Page No.

Tmplement inear Aeas Ch


PYogYav
OLYY cC8 , 6,1, 2)

len- n g Hn (oY)

C-0

wuilei<tn)
it lomtEJ == xX
C-1

iL-i+1

i l c = LX
pYint FOund"
me
pyin Not tound")

Outpu
Found

Teacher's Signature.
Date

Expt. No. Page No.

Tmplenent matYice addiion Subtrauion aud Mmdiplicoro

PYoga
L-marin (e(12+3, S 3, , ) , nouw:2,nol - z)
C matrin (cl2, 0i,o-1, 3, 4, ,nou 2 ntol : 3)

pYiut Mahmicesadditiovn"
print B tc)
PYint Moutyices SubYoHon: ")
print 8 -c)
print Mohyces Muliplicaton)
Print (B*c)

Oukpuk
Moutrces_addi Hon MotriC MultpliCoukron.

3to 5.Stot 3to 2+0 0.Sy to 16 t0t


2t3i 60tot 9.00+0t 2Sto

MaYCe SubYott ron


1 t0 5.3 FO
2+3 0 DOc

Taacher's Signature .
Data

Expt. No. Page No.

LwYea Hhat pYogYan printsa mulHPticakton talble


koY numbeY up _ 12

PYoYam
hum Z-12
boY ( tn 1 num X
boY in 1:1o )
",i))
print
3

1 *1 2 3* 1 3
1 2 2 3* 26
1 2 3 3
1 3 12
1 2 S sI
6 2 6 2 18
1 2 2
8 2
1 18
1 2 to 20 3 10 30

Teacher's Signature,
Date

Expt. No. Page No.

1 1 6 8 1 =8
6 2 12 8 2 16
M 3 12 3 E 13 8*3 2
6 6 29
20 6 30
6 6 6 36 6
28 6 42
32 6 8 8 8*8 6
36 6 3 72
6 8* lo 80

1 S 1 9
2 10 2 2I 2 18
s 3 21 a 3 2
y 28 O* 36
25
5 6 30 6 2
3S
2 63
S6 8 12
2 63
0 SO

Teacher's Signature,
Date

Expt. No. Page No.

L0X1 12 :12
lo2 20 12 2 2
30 12 3 36
ID 10 12
12* _ 60
0 6 60 12 6 }2
lo 12 7
12 846
12 108
D1D 100 12 o12

11 1 11
11 * 2 22
11* 33
11 * y
11
11*6 66
11 *4
11 88
11* 9
11 lo 110

Teacher's SignaBure

You might also like