We learn to use string methods in Python in this Python for beginners in Hindi Urdu video tutorial. We learn to use capitalize, casefold, center, endswith, find, index, islower and isnumeric built-in string methods in Python.
We write the following lines of code to discuss capitalize, casefold, center, endswith, find, index, islower and isnumeric Python string methods:
String methods
st = "welcome To python course."
print(st)
print(st.capitalize())
print(st.casefold())
print(st.center(50))
print(st.endswith("e"))
print(st.find("course"))
print(st.index("course"))
print(st.islower())
print(st.isnumeric())