String Functions Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

capitalise()

A

Converts the first character to upper case.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

count()

A

Returns the number of times a specified value occurs in a string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

find()

A

Searches the string for a specified value and returns the position of where it
was found.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

lower()

A

Converts the string into lower case.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

upper()

A

Converts the string into upper case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

split()

A

Splits the string at the specified separator, and returns a list.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

swapcase()

A

Swaps cases, lower case becomes upper case and vice versa

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

replace(a,b)

A

Replace the string a with b within a string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

strip()

A

Removes white space from the start and end of a string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly