3 ms·
Except a sequence is not an array. So OP’s definition still does not apply to python’s definition of a string in an unambiguous manner, which was the claim the
by rhaway84773 3y ago
Except a sequence is not an array.
So OP’s definition still does not apply to python’s definition of a string in an unambiguous manner, which was the claim they were making.
In fact, using the OP’s “unambiguous” definition leads to the conclusion that strings shouldn’t have a length function at all since it’s not an array.
- ant6n 3y agoI didnt say say a sequence is an array. I said its fair to call str objects in python arrays: https://en.m.wikipedia.org/wiki/Array_(data_type) https://en.m.wikipedia.org/wiki/Array_(data_type)