Sitemap

STRING

1 min read3 days ago

string is sequential data type

string is sequence of characters or Elements presents in n single quote ‘ ’, duble quote “ ”, triple quote “‘ ”’

Press enter or click to view image in full size

Properties Of String

String is a sequential data
String is a Imutable data
strings are of Two Types

Get Vardhavikas’s stories in your inbox

Join Medium for free to get updates from this writer.

Mutable : In this Data can add Data,Replace Data , Delete Data

Imutable:In this No Adding ,No Replacing ,No Deletion only data is happens .

Properties Of String:

It is a sequential data
They are immutable
Every Character has to it’s own adress (index value)
String has positive index values also has negative index values
Postive index values star from 0,Negative index values start from -1

STRING METHODS

String methods are built-in functions used to perform operations on strings, such as converting uppercase to lowercase, removing spaces, replacing characters, and searching for words.

upper()
lower()
capitalize()
title()
swapcase()
strip()
find()
index()
count()
replace()