Methods Flashcards

(4 cards)

1
Q

x.isnumeric()

A

checks if the string only contains numbers

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

x.split(character)

A

creates a list broken up by the instance of the character

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

x.strip(character)

A

removes all instances of that character in the string

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