Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
bryukh: "max" iterate through *ascii_lowercase*. Each letter (a, b, c etc) is processing by "text.count(lett...
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
veky: ... or loving them even more, you never know. :-P
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
jollyca: That's... weirdly beautiful. I feel like I learned something :)
|
Nov. 23, 2017, 1:45 p.m. |
+ 1 |
for Comment
melpon: It is simple. Add two values in sorted(data), n-th value (zero-origin) from the left and n-th value ...
|
Oct. 1, 2014, 6:48 p.m. |
+ 2 |
for
oneliner-DiZ
|
Oct. 1, 2014, 4:56 p.m. |
+ 1 |
for Comment
veky: Don't ever index by index. Pythonic idiom for this is accessing a dict by key. (a, b, c)[(d, e, f).i...
|
Oct. 1, 2014, 4:56 p.m. |
+ 1 |
for
Arithmetic-Sim0000
|
Oct. 1, 2014, 4:44 p.m. |
+ 2 |
for
dimpleqonx-veky
|
Oct. 1, 2014, 4:38 p.m. |
+ 1 |
for
Alguém faça isso menor?-Drakange1
|
Oct. 1, 2014, 4:33 p.m. |
+ 1 |
for
Second-vinc
|
Oct. 1, 2014, 4:25 p.m. |
+ 2 |
for
Operations mapping-attero
|
Sept. 25, 2014, 5:38 p.m. |
+ 1 |
for
Gallery-veky
|
Sept. 25, 2014, 5:37 p.m. |
+ 1 |
for Comment
veky: Nice rule of thumb: whenever you see "range(len(" in your code, you should probably use enumerate. ;...
|
June 2, 2014, 1:59 p.m. |
+ 1 |
for
Rule-based-PositronicLlama
|
June 2, 2014, 1:58 p.m. |
+ 2 |
for
First-Renelvon
|
June 2, 2014, 1:52 p.m. |
+ 1 |
for
Second3.3-bryukh
|
June 2, 2014, 1:51 p.m. |
+ 2 |
for
3 simple operations-odony
|
June 2, 2014, 1:47 p.m. |
+ 2 |
for
First-dougall
|
May 26, 2014, 4:13 p.m. |
+ 2 |
for
DOX and XOX-veky
|
May 26, 2014, 4:12 p.m. |
+ 2 |
for
First-DanielDou
|
May 26, 2014, 4:09 p.m. |
+ 2 |
for
Second-gyahun_dash
|
May 22, 2014, 2:25 p.m. |
+ 2 |
for
First-DanielDou
|
May 22, 2014, 2:18 p.m. |
+ 2 |
for
First-shiracamus
|
May 22, 2014, 2:12 p.m. |
+ 1 |
for
acre-hiroyuki.yamasaki.56
|
May 22, 2014, 2:09 p.m. |
+ 2 |
for
max-count-bryukh
|
May 22, 2014, 2:08 p.m. |
+ 1 |
for Comment
bryukh: No problem. I think, this discussion can be useful for other users. I agree with you -- for first gl...
|
May 21, 2014, 4:54 p.m. |
+ 1 |
for Comment
veky: I know I have achieved my purpose when a three liner teaches somebody something new. :-)
|
May 21, 2014, 3:49 p.m. |
+ 1 |
for
O(n) :-P-veky
|
May 21, 2014, 3:47 p.m. |
+ 2 |
for
First-zyndaras
|
May 21, 2014, 3:43 p.m. |
+ 2 |
for
One liner-azmaeve
|
May 19, 2014, 12:56 a.m. |
+ 1 |
for Comment
veky: Yes. To defend my view: def makes a full-fledged Python function, that _does_ something -- possibly ...
|
May 18, 2014, 4:47 p.m. |
+ 1 |
for
First-Uladzimir
|
May 18, 2014, 4:46 p.m. |
+ 1 |
for
Straightforward-veky
|
May 8, 2014, 7:01 p.m. |
+ 1 |
for Comment
nickie: In Python, "a or b" evaluates to "a" unless this produces a false value (i.e., False, 0, None, an em...
|
May 8, 2014, 4:09 p.m. |
+ 1 |
for
First-Amachua
|
May 8, 2014, 4:09 p.m. |
+ 1 |
for
Straightforward-nickie
|
May 5, 2014, 2:33 p.m. |
+ 1 |
for Task
Even the Last
|