string methods Flashcards

(27 cards)

1
Q

.capitalize()

A

Eerste letter vd string hoofdletter

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

.upper()

A

alle letters worden hoofdletters.

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

.lower()

A

Alle letters naar kleine letters

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

.count()

A

telt hoevaak substring voorkomt.

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

.replace()

A

Vervang alle voorkomens van een oude substring

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

.split()

A

Splits te string op basis van opgegeven scheidingskarakter

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

.strip()

A

verwijderd spaties links rechts van de string

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

.find()

A

geeft index van de eerste voorkoming van bepaalde substring

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

.startswith()

A

controleren of string begint met x

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

.endswith()

A

controleren of string eindigt met x

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

.join()

A

voegt alle elementen samen tot een string

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

.isdigit()

A

controleren of alle karakters cijfers zijn

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

.isalpha()

A

controleren of alle karakters letters zijn.

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

isdecimal()

A

controleert of alle karakters in de string decimale zijn

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

.index()

A

geeft index terug van eerste voorkoming van een bepaalde substring. Net zoals .find()

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

.isalnum()

A

Controleert of alle karakters alfanumeriek zijn

17
Q

.isupper()

A

controeleert of alle letters hoofdletters zijn. Boolean

18
Q

.islower()

A

Controleren of alle letters kleine letters zijn. boolean

19
Q

.title()

A

converteert eerste letter van elk woord naar hoofdletter.

20
Q

.format()

A

invoegen van waarden in een string

21
Q

.zfill()

A

String met nullen aanvullen zodat de string gespecificeerde breedte heeft.

22
Q

.isascii()

A

controleert of alle karakter is de string zijn ASCII. Boolean

23
Q

.isidentifier()

A

controleert of gegeven string een geldige identifier is. Boolean.

24
Q

.isnumeric()

A

controleer of alle karakters getallen zijn. Boolean

25
.isprintable()
controleert of string printbaar is. Boolean.
26
isspace()
controleert of de spring alleen witruimte bevat. Boolean
27
.istitle()
controleert of de string een title is. Boolean