0
Why lists and strings have not the same methods in Python?
2 odpowiedzi
+ 2
A list is a type where you store stuff in, take it out, shift it around.
A str is a type to model text.
Why should they have the same methods? They have totally different purposes.
You might as well ask why microwaves and radios don't have the same set of buttons.
(They do share a set of methods though, since they're both sequence types.)