0% found this document useful (0 votes)
10 views3 pages

Unit5A Py

The document discusses string operations, specifically focusing on string manipulation techniques such as slicing, traversal, and character analysis. It provides examples of how to perform these operations in programming, emphasizing the importance of string handling in data analysis. Additionally, it highlights various string functions and their applications in coding.

Uploaded by

Billakurthi Devi
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)
10 views3 pages

Unit5A Py

The document discusses string operations, specifically focusing on string manipulation techniques such as slicing, traversal, and character analysis. It provides examples of how to perform these operations in programming, emphasizing the importance of string handling in data analysis. Additionally, it highlights various string functions and their applications in coding.

Uploaded by

Billakurthi Devi
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

Modulay te

Shin Poing
The Infomatton in'attfilu,o wil ålu
infovmaton is mos1k oing tobeseasch od
anayzd, and lov upolaud,

Colutive y, the
openaions pnformd nbri
Dn
n
on s t
ings
is calld SingProtmin Smorpo 2
Definihon 4Co)2
sbin
Sbing proming joy fo heOpmatons

Penformud on 3ings that allow Thum to be


accencol, analyed, and updatd

Soma Qp:nalions 0 sbings fo Examp. p


3t foateing indvidual chaatns, and

nlsh)fo ge1ting h length lof a 3hing


ExapPogan fo sng Op stons? o
Str Yoq vamiz
print"s1 s ) íoa J
f i t chanatt
print ('sCo):', st To3)
tt lat chanact
print C's (-13 svt-13)
sli cing 9hd t 5 h chnael
Pvint('st (i:536 [1:5J) sova

#sueng 6h tod at charatlen


OoYYYO

e print('sts2)4C5) o'dom/oy

Str Pro9Yam 2 poia or 2

St (o3P
St -10z
stsog
st(5-2) am

SringTravensal epoid 2a mo
owe naao i UistTavegalion houo , Squnu
Can be tayensed ý'ineludh gsbingThes 1is
ua done y h D f forop
want Yeada C of
for Examp, ifwe ioYpor

t f i l an d daumine h numba of blank


w Cou do h Pollos'ng
chonotws itContains, AU OLOND

o) da)
spatu
hum 6pat :O

lin
in in put fileveod he ['))da
for k ini vange
(oln (lt))daApod
ifGnCE 4pate
la smum 5pa es mum5paCes t i t t0 p
we a lso Saw thet the lngst Cines Can be don

more impy t h out thu Exp t ue of an


indon Vonia h .
(dso) atoid
for ch inUn 2vodsrs ab ore
if chr 3pa

num-spaspMumZpatt
tonols
Givena abitt toravnse a sbing eath

charat an Can be individu ally


"

looked a at fov
fov

we Cook
look at Some
vanio typo al Stbing Prouming
sbvin 9 prounin Opnauons nen
2asUorog
.Thu t hanae ws in a 5 bin Can be easi y ravensed
wihoutth e oanEiplitindenania bl,

Using thfo chr n sbingfam of fo


Staumnt ovwbhoila

h a ira 2
NUO

You might also like