String Functions Flashcards
1
Q
capitalise()
A
Converts the first character to upper case.
2
Q
count()
A
Returns the number of times a specified value occurs in a string
3
Q
find()
A
Searches the string for a specified value and returns the position of where it
was found.
4
Q
lower()
A
Converts the string into lower case.
5
Q
upper()
A
Converts the string into upper case
6
Q
split()
A
Splits the string at the specified separator, and returns a list.
7
Q
swapcase()
A
Swaps cases, lower case becomes upper case and vice versa
8
Q
replace(a,b)
A
Replace the string a with b within a string
9
Q
strip()
A
Removes white space from the start and end of a string