Python: Concepts Flashcards

1
Q

dynamic typed

A

assigns type to variable based on the type of value assigned

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

strong typed

A

type does not change unexpectedly; type conversion is explicit

number = 1
string = 1 + “st” # throws TypeError

https://stackoverflow.com/questions/11328920/is-python-strongly-typed

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

collection

A

bags of values

(2) sets, dictionaries

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

sequence

or “sequential collections”

A

a collection whose items can be accessed sequentially (in some order)

(7) strings, bytes, lists, tuples, bytearrays, buffers & range objects

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