Python String Methods Flashcards
Capitalize()
Converts the first letter to upper case
count()
Returns the number of the times a specific value in a string occur
endswith()
Returns true if the string ends with the specified value
find()
Searches the string for a specified value and returns the position of where it was found.
index()
Searches the string for a specified value and returns the position of where it was found.
isalnum()
Returns True if all characters in the string are alphanumeric.
isdigit()
Returns True if all characters in the string are digits
islower()
Returns True if all characters are lower case
isnumeric()
Returns True if all characters in the string are numeric
isupper()
Returns True if all characters in the string are upper case
join()
Join the elements of an iterable to the end of the string
lower()
Converts a string into lower case
replace()
Returns a string where a specified value is replaced with a specified value
split()
Splits the string at the specified separator, and returns a list
startswith()
Returns True if the string starts with the specified value