Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.python,rec.puzzles Subject: Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 ) Date: Sun, 09 Jun 2024 21:18:25 -0700 Organization: A noiseless patient Spider Lines: 5 Message-ID: <87v82hph0u.fsf@nightsong.com> References: MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Mon, 10 Jun 2024 06:18:32 +0200 (CEST) Injection-Info: dont-email.me; posting-host="c2fe2a80c8b71093a482f71946a553d4"; logging-data="177445"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189k7wu3RoewSYUcrkfBiU/" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:NZZT7weKfXnJAMD+pJRA3Ve8k40= sha1:3+UQnSJA7vX9fuuz3HYISIIZZ9U= Bytes: 1160 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.