Strings and Tuples

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Strings and Tuples

Last time i explained lists which is a sequential data type.

Inka 2 sequential data types unnai avi e roju finish chestaanu.


--------------------------------------------------------------------------------------------------------------
“String” is simply collection of characters whatever they are(digits or alphabets or
special characters.

String ni either single quotes(‘ ‘) or double quotes(“ “) lo define chestaam.

----------------------------------------------------------------------------------------------------------------
Manam list lo chusinatte string lo kuda elements 0 nunchi start avutai...same alaage
negative index kuda work avutundhi.

String lo yedaina element ni access cheyaali ante daani index ni use chesi chestam
additional ga manam oka particular element ni modify cheyacchu.
---------------------------------------------------------------------------------------------------------------
“Tuple” is also a sequential data type which is very similar to list but tuple is
“IMMUTABLE”

Ante oka tuple ni create chesina tarwata we cannot make any modifications to
a tuple except reading the contents of a tuple.
--------------------------------------------------------------------------------------------------------------
“Tuple” indexing ni brackets ( ) tho define chestaam dentlo a data types ina store
cheyacchu but once create chesaaka manam modify cheyalem.

“Tuple” index kuda zero nunche start avutundhi.


----------------------------------------------------------------------------------------------------------------
“Tuple” lo kuda manam only set of elements ni access cheyacchu as we see in lists.

Name of the tuple[start : end] idhi starting nunchi end-1 varaku unna elements
annitini separate chestundhi.
----------------------------------------------------------------------------------------------------------------
Asalu yelaanti updations possible avvani oka data type yenduku undha ani doubt
ravacchu.

Real time applications lo manaku teliyakunda manam data sets meedha write
operations perform chestam.
Alantivi avoid cheyadaniki tuple use avutundi
----------------------------------------------------------------------------------------------------------------
Alaage permissions ni manage cheyadaniki e tuples chaala baaga use avutaai.

Because manam okariki oka tuple data ni maatrame icchi daani meedhane
operations perform cheyamante they cannot perform other operations other than
reading it.

So read only tasks lo tuple chaala help avutundhi


---------------------------------------------------------------------------------------------------------------

You might also like