Python lists are arrays in other languages. You’ll have to roll your own or
find something in https://pypi.org, etc. I think this incomplete implementation
does the trick.
#
# MIT licensed
#
from dataclasses import dataclass
from typing import TypeVar, Generic
T = TypeVar("T")
@dataclass
clas
Guenther Sohler writes:
Hi Python community,
I have a got an example list like
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
T T
and i eventually want to insert items in the given locations
(A shall go between 2 and 3, B shall go between 6 and 7)
Right now i just use ind
On 03/03/2023 21.22, Guenther Sohler wrote:
Hi Python community,
I have a got an example list like
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
T T
and i eventually want to insert items in the given locations
(A shall go between 2 and 3, B shall go between 6 and 7)
Right now i jus
bject: Re: Python list insert iterators
On 3/3/2023 3:22 AM, Guenther Sohler wrote:
> Hi Python community,
>
> I have a got an example list like
>
> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
> T T
>
> and i eventually want to insert items in the given location
On 3/3/2023 3:22 AM, Guenther Sohler wrote:
Hi Python community,
I have a got an example list like
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
T T
and i eventually want to insert items in the given locations
(A shall go between 2 and 3, B shall go between 6 and 7)
Right now i jus