X-Received: by 10.157.24.75 with SMTP id t11mr7597216ott.14.1459010976413; Sat, 26 Mar 2016 09:49:36 -0700 (PDT) X-Received: by 10.50.1.80 with SMTP id 16mr24042igk.2.1459010976337; Sat, 26 Mar 2016 09:49:36 -0700 (PDT) Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!nt3no4787765igb.0!news-out.google.com!u9ni4881igk.0!nntp.google.com!av4no2160258igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Sat, 26 Mar 2016 09:49:35 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.20.194.105; posting-account=Ac_J3QkAAABih73tf3Yz4sHazwGUM-hW NNTP-Posting-Host: 108.20.194.105 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <94237154-22af-4e64-85ee-9b4cf334fa6f@googlegroups.com> Subject: Exclude every nth element from list? From: beliavsky@aol.com Injection-Date: Sat, 26 Mar 2016 16:49:36 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.python:105765 I can use x[::n] to select every nth element of a list. Is there a one-liner to get a list that excludes every nth element?