Python String Functions
Python String Functions
Dr.G.Murugeswari
Asso.Prof.
CSE Dept.,MSU
String Functions
Built-in methods
Checking the presence of Alphabet,digit,decimal and
alphanumeric in a String
x = mySeparator.join(myDict)
print(x) nameTESTcountry
String Functions
• index()Searches the string for a specified value
and returns the position of where it was found
txt = "Hello, welcome to my world."
x = txt.index("welcome")
print(x) 7