Ch 14string method
name=len("ankit")
print(name)
#this fuction is used to count the cragter in your string
# lower method
name="ANKIT"
print(name.lower())
#this can lower chracter all your string chose by u
#you can use upper method and tittle method to in this function
a = "Hello, World!"
print(a.upper())
#This method change all chrahter into capital
a = "Hello, World!"
print(a.replace("H", "J"))
#("What u want to replace","what u need after replace")
Comments
Post a Comment