Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #196304
| Path | csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> |
| Newsgroups | comp.lang.python, rec.puzzles |
| Subject | Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) |
| Date | Fri, 21 Jun 2024 06:10:04 -0000 (UTC) |
| Organization | the-candyden-of-code |
| Lines | 36 |
| Message-ID | <slrnv7a5pt.5022.candycanearter07@candydeb.host.invalid> (permalink) |
| References | <v45eka$3s5s4$2@dont-email.me> <87v82hph0u.fsf@nightsong.com> <87bk45aw6b.fsf@fatphil.org> <slrnv6nnel.30ai.candycanearter07@candydeb.host.invalid> <87sex7ae6z.fsf@fatphil.org> |
| Injection-Date | Fri, 21 Jun 2024 08:10:04 +0200 (CEST) |
| Injection-Info | dont-email.me; posting-host="deb476f1a0e5c17bb99e8813a49f2d53"; logging-data="3198114"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1mpBG4CZoR0Nss5VBnYDNlHbWwCvYTx8oZTgng4Jztg==" |
| User-Agent | slrn/1.0.3 (Linux) |
| Cancel-Lock | sha1:WBSfXBhQg3T4Jv+0HXxyZeUTnpk= |
| X-Face | b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]% b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx `~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D |
| Xref | csiph.com comp.lang.python:196304 rec.puzzles:26267 |
Cross-posted to 2 groups.
Show key headers only | View raw
Phil Carmody <pc+usenet@asdf.org> wrote at 14:20 this Thursday (GMT):
> candycanearter07 <candycanearter07@candycanearter07.nomail.afraid>
> writes:
>
>> Phil Carmody <pc+usenet@asdf.org> wrote at 12:01 this Thursday (GMT):
>>> 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
>>
>> I /think/ you can replace it with {1...4} and {1...3}? I know there is
>> some syntax for "range of numbers" but I can't remember it exactly.
>
> You're right, but it's even shorter -
> $ echo {1..4}0{1..3}
> 101 102 103 201 202 203 301 302 303 401 402 403
>
> Good golfing!
>
> Phil
Thanks :D
--
user <candycane> is generated from /dev/urandom
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll 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