Posts: 4,654
Threads: 1,497
Joined: Sep 2016
the documentation for the
.pop()
method for mutable sequences says that the argument to be passed to it is a number in a list. why is that?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,654
Threads: 1,497
Joined: Sep 2016
May-18-2017, 03:26 AM
(This post was last modified: May-18-2017, 03:27 AM by Skaperen.)
so
[[]]
can mean an optional empty list. or for more fun
[[n]]
can mean an optional list with n as its only member or a list that can optionally have a member n or be empty.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,654
Threads: 1,497
Joined: Sep 2016
(May-18-2017, 03:48 AM)micseydel Wrote: I'd have to see a real example.
how would i do that? i'm just making mixed interpretation of [] ehen there are two of them, one interpreted as a list spec and the other meaning optional.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.