Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #196245

Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 )

Path csiph.com!pasdenom.info!nyheter.lysator.liu.se!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Phil Carmody <pc+usenet@asdf.org>
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> (permalink)
References <v45eka$3s5s4$2@dont-email.me> <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=
Xref csiph.com comp.lang.python:196245 rec.puzzles:26252

Cross-posted to 2 groups.

Show key headers only | View raw


Paul Rubin <no.email@nospam.invalid> writes:
> HenHanna <HenHanna@devnull.tb> 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/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) HenHanna <HenHanna@devnull.tb> - 2024-06-09 16:42 -0700
  Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) Paul Rubin <no.email@nospam.invalid> - 2024-06-09 21:18 -0700
    Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) Phil Carmody <pc+usenet@asdf.org> - 2024-06-13 15:01 +0300
      Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-06-14 06:10 +0000
        Re: in Python: (101 102 103 201 ...) (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-06-14 07:18 +0000
        Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) "Peter J. Holzer" <hjp-python@hjp.at> - 2024-06-18 23:26 +0200
        Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) Phil Carmody <pc+usenet@asdf.org> - 2024-06-20 17:20 +0300
          Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-06-21 06:10 +0000

csiph-web