Hoofdstuk 6 + 7: python lists + tuples en dictionaries Flashcards

1
Q

wat is het verschil tussen methods en functies

A

methods veranderen de strings, lists, etc etc permanent in tegenstelling tot functies

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

zijn lists immutable of mutable

A

mutable dus ze zijn veranderbaar

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

hoe worden lists genummerd

A

met indexen zoals bij de strings

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

hoe worden strings weergegeven

A

door rechte haakjes

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

zijn tuples immutable of mutable

A

immutable dus niet veranderbaar zoals bij strings

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

hoe worden tuples genummerd

A

met indexen zoals bij de strings en lists

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

hoe worden tuples weergegeven + wat is er speciaal aan

A

door ronde haakjes + als je:

tup = (22) doet dan heb je een geheel getal

tup = (22,) of 22, doet dan heb je een tuple

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

zijn dictionaries immutable of mutable

A

mutable dus veranderbaar zoals list

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

hoe worden dictionaries genummerd

A

niet met indexen maar met sleutels en waarden en die sleutels en waarden kunnen alles zijn

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

hoe worden dictionaries weergegeven

A

door accolades

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