n...
How can this code work??? , when it's
> def chunk1(seq):
and it's [s] within the def-body ?
it seemed as if the Compiler was doing a DWIM (Do what i mean) trick.
On 09/06/2024 22:20, HenHanna via Python-list wr
shoot whatever we say down.
A considerate person would ask questions more clearly and perhaps explain
what language they are showing us code from and so on.
Life is too short to waste.
-Original Message-
From: Python-list On
Behalf Of HenHanna via Python-list
Sent: Sunday, June 9, 2024 5
On 6/9/2024 3:50 PM, MRAB wrote:
On 2024-06-09 22:20, HenHanna via Python-list wrote:
Chunk, ChunkC -- nice simple way(s) to write these in Python?
(Chunk '(a a b a a a b b))
==> ((a a) (b) (a a a) (b b))
(Chunk '(a a a a b c c a a d e e e e))
Chunk, ChunkC -- nice simple way(s) to write these in Python?
(Chunk '(a a ba a a b b))
==> ((a a) (b) (a a a) (b b))
(Chunk '(a a a a b c c a a d e e e e))
==> ((a a a a) (b) (c c) (a a) (d) (e e e e))
(Chunk '(2 2 foo bar bar j j j k baz baz))
;;; Pls tell me about little tricks you use in Python or Lisp.
[('the', 36225), ('and', 17551), ('of', 16759), ('i', 16696), ('a',
15816), ('to', 15722), ('that', 11252), ('in', 10743), ('it', 10687)]
((the 36225) (and 17551) (of 16759) (i 16696) (a 15816) (to 15722) (that
11252)
On 5/30/2024 2:18 PM, dn wrote:
On 31/05/24 08:03, HenHanna via Python-list wrote:
Given a text file of a novel (JoyceUlysses.txt) ...
could someone give me a pretty fast (and simple) Python program that'd
give me a list of all words occurring exactly once?
-- Also, a
Given a text file of a novel (JoyceUlysses.txt) ...
could someone give me a pretty fast (and simple) Python program that'd
give me a list of all words occurring exactly once?
-- Also, a list of words occurring once, twice or 3 times
re: hyphenated words(you can treat
On 5/27/2024 1:59 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
On 2024-05-27 at 12:37:01 -0700,
HenHanna via Python-list wrote:
On 5/27/2024 7:18 AM, Cor wrote:
Some entity, AKA "B. Pym" ,
wrote this mindboggling stuff:
(selectively-snipped-or-not-p)
On 12/16/2023, c...@clsne
On 5/27/2024 7:18 AM, Cor wrote:
Some entity, AKA "B. Pym" ,
wrote this mindboggling stuff:
(selectively-snipped-or-not-p)
On 12/16/2023, c...@clsnet.nl wrote:
Any marginally usable programming language approaches an ill
defined barely usable re-implementation of half of common-lisp
dn wrote:
On 22/05/24 07:14, HenHanna via Python-list wrote:
How can i write this function Cprod (Cartesian Product) simply?
(writing this out: itertools.product([0, 1], repeat=N
)
The value can be a list or a Tuple.
cprod([0, 1], 1) => ((0)
How can i write this function Cprod (Cartesian Product) simply?
(writing this out: itertools.product([0, 1], repeat=N )
The value can be a list or a Tuple.
cprod([0, 1], 1) => ((0) (1))
cprod([0, 1], 2) => ((0,0) (0,1) (1,0) (1,1))
This work
Blue-Maned_Hawk wrote:
HenHanna wrote:
https://xkcd.com/1306/
what does SIGIL mean?
I'd define a sigil as a mandatory symbol used to indicate the properties
of a name.
if i'm getting this right... Sigil is part of the language spec,
whereas (in Lisp in
On 3/29/2024 11:21 PM, HenHanna wrote:
https://xkcd.com/353/ ( Flying with Python )
https://xkcd.com/1306/
what does SIGIL mean? -- (i got it...Thanks!)
Other xkcd that you like?
my fav. one may be the one about [Bad-ass Hacker] [Nice-ass car].
Doe
Johanne Fairchild wrote:
HenHanna writes:
https://xkcd.com/1306/
what does SIGIL mean?
A glyph used in magic. Or, for Perl, the symbol in front of a variable
name, such as $, @, and %.
Source: https://perldoc.perl.org/perlglossary#sigil
Sigil is
Greg Ewing wrote:
On 30/03/24 7:21 pm, HenHanna wrote:
https://xkcd.com/1306/
what does SIGIL mean?
I think its' a Perl term, referring to the $/@/# symbols in front of
identifiers.
thanks!
https://www.explainxkcd.com/wiki/index.php/13
https://xkcd.com/353/ ( Flying with Python )
https://xkcd.com/1306/
what does SIGIL mean?
Other xkcd that you like?
--
https://mail.python.org/mailman/listinfo/python-list
16 matches
Mail list logo