String Fuctions

 Some String Fnctions


mystr = "Akhand is a good boy"
print(mystr.endswith("bdoy"))
print(mystr.count("o"))
print(mystr.capitalize())
print(mystr.find("is"))
print(mystr.upper())
print(mystr.replace("is","are"))

Comments

Popular posts from this blog

Sets in Python

My Learnings