Path: ...!npeer.as286.net!npeer-ng0.as286.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Phil Carmody Newsgroups: comp.lang.python,rec.puzzles Subject: Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) Date: Thu, 13 Jun 2024 15:01:32 +0300 Organization: A noiseless patient Spider Lines: 20 Message-ID: <87bk45aw6b.fsf@fatphil.org> References: <87v82hph0u.fsf@nightsong.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Thu, 13 Jun 2024 14:17:33 +0200 (CEST) Injection-Info: dont-email.me; posting-host="501e944e5cd87bd7dcbe1968d47d298a"; logging-data="2383841"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+N9UvVVs01SmwR0l4w/6XE" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:bHGBG8CRTDNpO6CZJKuH6yg7ODw= sha1:z2wPY5iI5BlrUGu39fj4YdSjUDo= Bytes: 1902 Paul Rubin writes: > HenHanna writes: >> is there another (simple) way to write this? > > Yes, but please consider doing these easy exercises yourself instead of > fobbing them onto other people. Hen's probably just an experimental GPT. You, with your limited resources, can never train it. I'd say you can't beat the verbosity, or lack thereof of just plain zsh/bash: $ echo {1,2,3,4}0{1,2,3} 101 102 103 201 202 203 301 302 303 401 402 403 Phil -- We are no longer hunters and nomads. No longer awed and frightened, as we have gained some understanding of the world in which we live. As such, we can cast aside childish remnants from the dawn of our civilization. -- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/