Jan. 25, 2016, 2:26 p.m. |
+ 1 |
for Comment
oduvan: print(checkio([2,2,2,2,2,2])) shows 12 so the python works good. I think the problem with global var...
|
Jan. 17, 2016, 8 a.m. |
+ 1 |
for
First-mydaemon
|
Jan. 17, 2016, 7:55 a.m. |
+ 2 |
for
First-Sim0000
|
Dec. 19, 2015, 12:04 p.m. |
+ 1 |
for Comment
abe.dillon: You know the pythonic way would be to use a dictionary look-up right? ;-P
|
Dec. 19, 2015, noon |
+ 1 |
for
First-Amachua
|
Dec. 19, 2015, 11:02 a.m. |
+ 1 |
for
First - I love Python!-AQiccl135
|
Dec. 19, 2015, 10:53 a.m. |
+ 2 |
for
Last-artakase
|
Dec. 19, 2015, 10:45 a.m. |
+ 1 |
for
Basic thinks I love in Python-dmrvos
|
Dec. 19, 2015, 6:17 a.m. |
+ 1 |
for Comment
gyahun_dash: First, pairs = product(('south', 'north'), ('west', 'east')) is equivalent to: pairs = ('south', 'we...
|
Dec. 19, 2015, 6:13 a.m. |
+ 4 |
for
First-gyahun_dash
|
Dec. 18, 2015, 12:37 p.m. |
+ 4 |
for
Hinted-veky
|
Dec. 18, 2015, 2:02 a.m. |
+ 4 |
for
First-dagger126
|
Dec. 17, 2015, 7:32 a.m. |
+ 3 |
for
First-gyahun_dash
|
Dec. 16, 2015, 1:49 a.m. |
+ 3 |
for
First-zero_loss
|
Dec. 15, 2015, 6:24 a.m. |
+ 3 |
for
Obvious-veky
|
Dec. 15, 2015, 3:37 a.m. |
+ 1 |
for Comment
ggila: Smart. I love your ending condition !
|
Dec. 15, 2015, 3:37 a.m. |
+ 3 |
for
combination-Sim0000
|
Dec. 15, 2015, 3:34 a.m. |
+ 3 |
for
First-SergeyKhentov
|
Dec. 14, 2015, 12:30 p.m. |
+ 3 |
for
First-Sim0000
|
Dec. 14, 2015, 12:30 p.m. |
+ 1 |
for Comment
leusgalvan: Nice trick to make concise definitions.
|
Dec. 14, 2015, 2:59 a.m. |
+ 2 |
for
clear-zcjsword
|
Dec. 13, 2015, 8:58 a.m. |
+ 2 |
for
Roman numerals-KacperBeisert
|
Dec. 13, 2015, 6:48 a.m. |
+ 1 |
for Task
Roman Numerals
|
Dec. 13, 2015, 6:16 a.m. |
+ 1 |
for Comment
dsethlewis: I gotta learn how to use itertools. This is the code I wanted to write when I made the mess I actual...
|
Dec. 13, 2015, 6:15 a.m. |
+ 1 |
for Comment
Happiness: Yep, max() is great, but I forgot about this)
|
Dec. 13, 2015, 6:07 a.m. |
+ 3 |
for
Feed Pigeons-KacperBeisert
|
Dec. 12, 2015, 1:03 p.m. |
+ 2 |
for
First-Sim0000
|
Dec. 12, 2015, 5:21 a.m. |
+ 1 |
for Comment
xtofl: Quite clear and very pragmatic, to say the least. Using a string representation for the combos makes...
|
Dec. 12, 2015, 5:16 a.m. |
+ 1 |
for
Second-gyahun_dash
|
Dec. 11, 2015, 3:20 a.m. |
+ 1 |
for
First-mikra
|
Dec. 9, 2015, 3:09 a.m. |
+ 1 |
for Comment
veky: `self` is a weird name in this context. :-) That duplication of code for rows and cols... wouldn't i...
|
Dec. 9, 2015, 3:03 a.m. |
+ 1 |
for Comment
veky: `ele` is a weird abbrevi. :-) They usually don't end with a vowel. Making a new list (via comprehens...
|
Dec. 9, 2015, 2:33 a.m. |
+ 1 |
for Comment
veky: Again, much duplication of code. for limits in '09 az AZ'.split(): if not re.search('-'.join(limits)...
|
Dec. 8, 2015, 12:53 p.m. |
+ 1 |
for
First-gyahun_dash
|
Dec. 8, 2015, 12:53 p.m. |
+ 1 |
for Comment
leusgalvan: That max/min trick works like a charm ;)
|
Dec. 8, 2015, 12:52 p.m. |
+ 1 |
for
slice-gyahun_dash
|
Dec. 8, 2015, 12:28 p.m. |
+ 1 |
for Comment
Blukano: Nice! I'm a beginner with Python, and needed 20 lines of code to solve this problem. Makes me realis...
|
Dec. 8, 2015, 12:18 p.m. |
+ 1 |
for
First-mansuang
|
Dec. 8, 2015, 12:14 p.m. |
+ 1 |
for
clean solution for building set of neighboorh-p.szypowicz
|
Dec. 8, 2015, 8:21 a.m. |
+ 1 |
for
Strong Password-SuperDave1342_e7c9d7c4f1784f3c
|
Dec. 8, 2015, 8:18 a.m. |
+ 1 |
for Comment
stenskjaer: Two questions: 1. How great is the need of compiling the regexps? [The docs mention](https://docs.py...
|
Dec. 8, 2015, 8:17 a.m. |
+ 1 |
for Comment
alexkindel: It is very clear, but what is the motivation for keeping the regular expressions separate rather tha...
|
Dec. 8, 2015, 7:57 a.m. |
+ 1 |
for
First-Renelvon
|
Dec. 8, 2015, 7:57 a.m. |
+ 1 |
for Comment
DanielDou: This is very clever code. :) Gave you a thumbs up! But the flaw in it seems you can bypass those con...
|
Dec. 8, 2015, 7:57 a.m. |
+ 1 |
for Comment
Renelvon: Indeed! I need to filter symbols out before applying the test, but I need to reintroduce them when c...
|
Dec. 8, 2015, 7:21 a.m. |
+ 1 |
for
First-Poy
|
Dec. 8, 2015, 7:20 a.m. |
+ 1 |
for
First-Karan_bhasin
|
Dec. 8, 2015, 6:16 a.m. |
+ 1 |
for Comment
contrebasse: if l % 2 == 1: For clarity, I would keep the ==1 here (or rather have !=0 actually).
|
Dec. 8, 2015, 6:16 a.m. |
+ 1 |
for Comment
zormit: return sum(data[mid-1:mid+1]) / 2 I found this -1, +1 a bit confusing, because it suggests three ele...
|
Dec. 8, 2015, 6:15 a.m. |
+ 1 |
for Comment
baldyman: fair solution, but it's generally not a good idea for function to have side effects on its arguments...
|
Dec. 8, 2015, 2:46 a.m. |
+ 1 |
for
First-AndriusMk
|