Python String Methods Flashcards

1
Q

Capitalize()

A

Converts the first letter 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 the times a specific value in a string occur

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

endswith()

A

Returns true if the string ends with the specified value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
Q

index()

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
6
Q

isalnum()

A

Returns True if all characters in the string are alphanumeric.

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

isdigit()

A

Returns True if all characters in the string are digits

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

islower()

A

Returns True if all characters are lower case

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

isnumeric()

A

Returns True if all characters in the string are numeric

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

isupper()

A

Returns True if all characters in the string are upper case

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

join()

A

Join the elements of an iterable to the end of the string

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

lower()

A

Converts a string into lower case

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

replace()

A

Returns a string where a specified value is replaced with a specified value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
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
15
Q

startswith()

A

Returns True if the string starts with the specified value

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

strip()

A

remove white space

17
Q

upper()

A

Converts a string into upper case