Path: csiph.com!aioe.org!.POSTED!not-for-mail From: larudwer Newsgroups: comp.lang.python Subject: Re: repeat items in a list Date: Sun, 27 Mar 2016 11:52:05 +0200 Organization: Aioe.org NNTP Server Lines: 6 Message-ID: References: <8935d5dc-5e62-4fa8-8e8f-bd5b1787ee9f@googlegroups.com> NNTP-Posting-Host: PITbSlgrDs5wjMHKt4HLeQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.python:105831 how about >>>> sorted(["a", "b"]*3) ['a', 'a', 'a', 'b', 'b', 'b']