Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: repeat items in a list Date: Mon, 28 Mar 2016 10:04:42 -0400 Lines: 11 Message-ID: References: <8935d5dc-5e62-4fa8-8e8f-bd5b1787ee9f@googlegroups.com> <29bb9c16-eef4-4c00-9e41-ce8419405c29@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de DGqHl/iMgkWAGbCw0nkrzAZTA1BdJaQNFVJuYa6bR0mw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:internal': 0.09; 'missed': 0.15; "'a',": 0.16; "'b',": 0.16; "'c',": 0.16; "['a',": 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'subject:list': 0.26; 'about.': 0.29; 'point': 0.33; "he's": 0.33; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'turn': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'mar': 0.65; 'talking': 0.67; 'order:': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=IVWqa3HXF2bCQnLi4E+xZBuZ6hI=; b=CQsos9 rg+adkFSxyTvjgXTGMIXHk5cbUGhLkfnjw6cp0Wvp7uYawRe6gEAtyO2nKt6Z5+r TpD0n0MNJdPNFyg1EgcSIMUWjX97THxDVnWWpq8bYM9q8qnKPZSbqnxgwQtfpO2z ze5n4emkXn+uAPcu7x3A0J3pGmr6p5MPbcIVo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=IVWqa3HXF2bCQnL i4E+xZBuZ6hI=; b=XAfj0eycRp+Eht41XtNrbxi/qJ7gUEb78smBqu+j51vA1ba vCqGlVBPbAT1Y9LUT0Z1trLbg8gJbXPBYBI7LoX+UzmtYh/Rdi6Ea673l6CrdVxU AtrX5+Db06lKr5OND0xnYcEW8BSIALlsUNYSWj3hheRsFLOcibrTRH0TSQCw= X-Sasl-Enc: 1EFel5PvkVddWMplq4XV5d9BNlIwkzZQTmLfFyqM0GI+ 1459173882 X-Mailer: MessagingEngine.com Webmail Interface - ajax-eaa4717d In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105901 On Mon, Mar 28, 2016, at 07:36, larudwer wrote: > in case you want to mainain order: > > >>>> ["a","b"]*3 > ['a', 'b', 'a', 'b', 'a', 'b'] > > is completely suffincient. I think you've completely missed the point of what order he's talking about. How do you turn ['a', 'c', 'b'] into ['a', 'a', 'a', 'c', 'c', 'c', 'b', 'b', 'b']?