Deutsch   English   Français   Italiano  
<87o83pbvyp.fsf@izac.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!news.ortolo.eu!news.izac.org!reader
From: Benoit Izac <use.reply.to@INVALID.ADDRESS>
Newsgroups: fr.comp.lang.python
Subject: Re: =?utf-8?Q?s=C3=A9parer?= une combinaison d'une liste
Date: Wed, 02 Feb 2022 07:53:34 +0100
Message-ID: <87o83pbvyp.fsf@izac.org>
References: <r6udnXOczOGPLmT8nZ2dnUU7_83NnZ2d@giganews.com>
Reply-To: benoit.izac@free.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: keg.izac.org;
	logging-data="1537003"; mail-complaints-to="usenet@izac.org"
Bytes: 1094
Lines: 16

Bonjour,

Le 01/02/2022 à 23:24, carlit a écrit dans le message
<r6udnXOczOGPLmT8nZ2dnUU7_83NnZ2d@giganews.com> :

> J'essaye de séparer des éléments combinés d'une liste :
>
> je veux passer de [('1', '2')] a ['1', '2']
>
> Si quelqu'un a une solution je suis preneur

>>> l = [('1', '2')]
>>> [y for x in l for y in x]
['1', '2']

-- 
Benoit Izac