June 8, 2015, 4:12 p.m. |
+1 |
Experience for voted comment GelaGela: 1 on suic: Hi, you could write return [i for i in data if data.count(i) > 1] |
June 8, 2015, 10:10 a.m. |
+2 |
Experience for voted solution l-vincent-l: 1 on grigoriytretyakov's shortened without eval-suic |
June 6, 2015, 10:01 a.m. |
+2 |
Experience for voted solution xpkong_f372b67c8943475780ea72c: 1 on With for...else :)-suic |
June 4, 2015, 9:16 a.m. |
+1 |
Experience for voted solution Sylouf: 1 on One-liner variation-suic |
June 2, 2015, 6:09 p.m. |
+1 |
Experience for voted comment marroyo: 1 on suic: Hi, from top to bottom left to right: # The first if checks if n_row are n_col are valid indices. # ... |
June 2, 2015, 9:57 a.m. |
+5 |
Experience for appreciated comment oduvan: 1 on suic: Hi, look at _sorted()_. |
June 2, 2015, 9:57 a.m. |
+1 |
Experience for voted comment oduvan: 1 on suic: Hi, look at _sorted()_. |
June 1, 2015, 11:16 a.m. |
+1 |
Experience for voted comment Vedeshkin: 1 on suic: Hi, from top to bottom left to right: # The first if checks if n_row are n_col are valid indices. # ... |
May 31, 2015, 11:43 p.m. |
+1 |
Experience for voted comment n.vasilev92: 1 on suic: Forget about the "first element". Description says: > Check whether there is a pair of words, such t... |
May 31, 2015, 11:43 p.m. |
+5 |
Experience for appreciated comment n.vasilev92: 1 on suic: Forget about the "first element". Description says: > Check whether there is a pair of words, such t... |
May 31, 2015, 9:38 p.m. |
+1 |
Experience for voted comment tiaanrswart: 1 on suic: Hi, look at _sorted()_. |
May 31, 2015, 9:38 p.m. |
+5 |
Experience for appreciated comment tiaanrswart: 1 on suic: Hi, look at _sorted()_. |
May 31, 2015, 8:02 p.m. |
+1 |
Experience for voted solution Tom_L_HD: 1 on Shortened-suic |
May 31, 2015, 2:32 p.m. |
+1 |
Experience for voted comment illion: 1 on suic: Hi, 1. lines 1, 11 are redundant. 2. you could write `if not array:` Look at _extended slices_, _sum... |
May 31, 2015, 2:32 p.m. |
+5 |
Experience for appreciated comment illion: 1 on suic: Hi, 1. lines 1, 11 are redundant. 2. you could write `if not array:` Look at _extended slices_, _sum... |
May 31, 2015, 2:31 p.m. |
+5 |
Experience for appreciated comment illion: 1 on suic: Hi, what about: return sum(any(word in text_item for text_item in text.lower().split()) for word in ... |
May 31, 2015, 2:31 p.m. |
+1 |
Experience for voted comment illion: 1 on suic: Hi, what about: return sum(any(word in text_item for text_item in text.lower().split()) for word in ... |
May 31, 2015, 2:21 p.m. |
+5 |
Experience for appreciated comment illion: 1 on suic: Hi, 1. Lines 1, 2 and 10 are pointless. 2. You could write `return array[n] ** n` and `return -1`. |
May 31, 2015, 2:21 p.m. |
+2 |
Experience for voted comment illion: 1 on suic: Hi, 1. Lines 1, 2 and 10 are pointless. 2. You could write `return array[n] ** n` and `return -1`. |
May 31, 2015, 2:17 p.m. |
+1 |
Experience for voted comment illion: 1 on suic: Hi, you don't need the `result` variable as well as the `number` variable. Line 19 is redundant. |
May 31, 2015, 2:17 p.m. |
+5 |
Experience for appreciated comment illion: 1 on suic: Hi, you don't need the `result` variable as well as the `number` variable. Line 19 is redundant. |
May 31, 2015, 2:02 p.m. |
+5 |
Experience for appreciated comment illion: 1 on suic: Hi, that last `if` is redundant: return count >= 3 |
May 31, 2015, 2:02 p.m. |
+1 |
Experience for voted comment illion: 1 on suic: Hi, that last `if` is redundant: return count >= 3 |
May 29, 2015, 9:09 a.m. |
+1 |
Experience for voted comment oduvan: 1 on suic: Hi, the issue is on line 6. When you are in `if` branch, your function returns __None__ as you don't... |
May 28, 2015, 11:41 a.m. |
+5 |
Experience for appreciated comment merylvdm: 1 on suic: Hi, line 9 is useless. |
May 28, 2015, 11:41 a.m. |
+1 |
Experience for voted comment merylvdm: 1 on suic: Hi, line 9 is useless. |
May 27, 2015, 3 p.m. |
+1 |
Experience for voted comment mihaillebedevdev: 1 on suic: Hi that else branch is redundant. if ...: if lis is None and uis is None and dis is None and ais is ... |
May 27, 2015, 3 p.m. |
+5 |
Experience for appreciated comment mihaillebedevdev: 1 on suic: Hi that else branch is redundant. if ...: if lis is None and uis is None and dis is None and ais is ... |
May 27, 2015, 2:29 p.m. |
+5 |
Experience for appreciated comment iwill: 1 on suic: Hi, DRYer version of pattern: pattern = '^(([%s][^%s])+[%s]?|([^%s][%s])+[^%s]?)$' % (("aeiouy",) * ... |
May 27, 2015, 2:29 p.m. |
+1 |
Experience for voted comment iwill: 1 on suic: Hi, DRYer version of pattern: pattern = '^(([%s][^%s])+[%s]?|([^%s][%s])+[^%s]?)$' % (("aeiouy",) * ... |
May 27, 2015, 2:33 a.m. |
+5 |
Experience for appreciated comment NEED: 1 on suic: Hi, I'm glad that my comments helped. But I apologize for my stupidity :) as I forgot to mention the... |
May 27, 2015, 2:33 a.m. |
+1 |
Experience for voted comment NEED: 1 on suic: Hi, I'm glad that my comments helped. But I apologize for my stupidity :) as I forgot to mention the... |
May 27, 2015, 2:12 a.m. |
+5 |
Experience for appreciated comment NEED: 1 on suic: Hi, it would be easier to answer the question: _Why not write in C-style in Python?_ It is not easy ... |
May 27, 2015, 2:12 a.m. |
+1 |
Experience for voted comment NEED: 1 on suic: Hi, it would be easier to answer the question: _Why not write in C-style in Python?_ It is not easy ... |
May 26, 2015, 5:02 p.m. |
+1 |
Experience for voted solution waxdesf: 1 on One-liner variation-suic |
May 26, 2015, 2:43 p.m. |
+1 |
Experience for voted comment kleshmax: 1 on suic: Hi, 1. look at _filter()_. 2. you could write `x += 1` |
May 26, 2015, 2:43 p.m. |
+5 |
Experience for appreciated comment kleshmax: 1 on suic: Hi, 1. look at _filter()_. 2. you could write `x += 1` |
May 26, 2015, 2:42 p.m. |
+5 |
Experience for appreciated comment kleshmax: 1 on suic: Hi, look at _extended slices_ and _sum()_. |
May 26, 2015, 2:42 p.m. |
+1 |
Experience for voted comment kleshmax: 1 on suic: Hi, look at _extended slices_ and _sum()_. |
May 26, 2015, 2:42 p.m. |
+5 |
Experience for appreciated comment kleshmax: 1 on suic: Hi, 1. look at _filter()_ and _str.join()_. 2. __str__ is immutable in Python, therefore is not the ... |
May 26, 2015, 2:42 p.m. |
+1 |
Experience for voted comment kleshmax: 1 on suic: Hi, 1. look at _filter()_ and _str.join()_. 2. __str__ is immutable in Python, therefore is not the ... |
May 26, 2015, 9:46 a.m. |
+1 |
Experience for voted comment AndrewZhulanov: 1 on suic: You don't need the if ... else at all: def checkio(array): return len(array) and sum(array[::2]) * a... |
May 26, 2015, 5:02 a.m. |
+5 |
Experience for appreciated comment jrebane: 1 on suic: Hi, look at _sorted()_. With sorted you can omit the _list()_ and the _output.sort()_. In fact you c... |
May 26, 2015, 5:02 a.m. |
+1 |
Experience for voted comment jrebane: 1 on suic: Hi, look at _sorted()_. With sorted you can omit the _list()_ and the _output.sort()_. In fact you c... |
May 26, 2015, 4:59 a.m. |
+5 |
Experience for appreciated comment jrebane: 1 on suic: `for ... else` :) |
May 26, 2015, 4:59 a.m. |
+1 |
Experience for voted comment jrebane: 1 on suic: `for ... else` :) |
May 26, 2015, 3:16 a.m. |
+5 |
Experience for appreciated comment rdmar13: 1 on suic: Hi, 1. Look at extendend slices: `array[::2]` for even elements. 2. and _sum()_: `sum(array[::2])` f... |
May 26, 2015, 3:16 a.m. |
+1 |
Experience for voted comment rdmar13: 1 on suic: Hi, 1. Look at extendend slices: `array[::2]` for even elements. 2. and _sum()_: `sum(array[::2])` f... |
May 26, 2015, 3:15 a.m. |
+5 |
Experience for appreciated comment rdmar13: 1 on suic: Hi, look at _str.isupper()_, _str.isupper()_ and _str.isdigit()_. |
May 26, 2015, 3:15 a.m. |
+1 |
Experience for voted comment rdmar13: 1 on suic: Hi, look at _str.isupper()_, _str.isupper()_ and _str.isdigit()_. |
May 26, 2015, 1:30 a.m. |
+5 |
Experience for appreciated comment NEED: 1 on suic: Hi, if you have to use `\` there is something wrong :) return list.__eq__(*[[x for x in sorted(w.low... |
May 26, 2015, 1:30 a.m. |
+1 |
Experience for voted comment NEED: 1 on suic: Hi, if you have to use `\` there is something wrong :) return list.__eq__(*[[x for x in sorted(w.low... |
May 26, 2015, 1:30 a.m. |
+1 |
Experience for voted comment NEED: 1 on suic: Hi, this is not Pythonic. Look at _list comprehensions_. |
May 26, 2015, 1:30 a.m. |
+5 |
Experience for appreciated comment NEED: 1 on suic: Hi, this is not Pythonic. Look at _list comprehensions_. |
May 24, 2015, 7:54 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, not this way! Look at _(extended) slices_ in Python. |
May 23, 2015, 10:46 p.m. |
+1 |
Experience for voted comment geekroot: 1 on suic: Hi, not this way! Look at _(extended) slices_ in Python. |
May 23, 2015, 4:02 a.m. |
+7 |
Experience for voted solution g7845123: 2 on First-suic |
May 21, 2015, 1:55 p.m. |
+4 |
Experience for voted solution waxdesf: 2 on One, One, One-liner-suic |
May 21, 2015, 1:42 p.m. |
+1 |
Experience for voted solution android.pavlov: 1 on One-liner variation-suic |
May 19, 2015, 10:40 p.m. |
+1 |
Experience for voted solution light2happy.718: 1 on Revisited KvaNTy's Straight and primitive-suic |
May 15, 2015, 9:06 p.m. |
+2 |
Experience for voted solution JayLee: 1 on First-suic |
May 15, 2015, 9:05 p.m. |
+2 |
Experience for voted solution JayLee: 2 on One-liner variation-suic |
May 15, 2015, 8:55 p.m. |
+5 |
Experience for appreciated comment JayLee: 1 on suic: Hi, yes it's a better way. :) |
May 15, 2015, 8:55 p.m. |
+1 |
Experience for voted comment JayLee: 1 on suic: Hi, yes it's a better way. :) |
May 14, 2015, 9:21 a.m. |
+5 |
Experience for appreciated comment AndreyDorofeyev: 1 on suic: Hi, _str()_ is redundant as _bin()_ returns __str__. |
May 14, 2015, 9:21 a.m. |
+1 |
Experience for voted comment AndreyDorofeyev: 1 on suic: Hi, _str()_ is redundant as _bin()_ returns __str__. |
May 14, 2015, 9:19 a.m. |
+5 |
Experience for appreciated comment AndreyDorofeyev: 1 on suic: Hi, [] are redundant and look at _filter()_ built-in function. |
May 14, 2015, 9:19 a.m. |
+1 |
Experience for voted comment AndreyDorofeyev: 1 on suic: Hi, [] are redundant and look at _filter()_ built-in function. |
May 14, 2015, 9:18 a.m. |
+5 |
Experience for appreciated comment AndreyDorofeyev: 1 on suic: Hi, 1. Because _str.endswith()_ returns a __bool__ that `... if ... else ...` is redundant. 2. [] ar... |
May 14, 2015, 9:18 a.m. |
+1 |
Experience for voted comment AndreyDorofeyev: 1 on suic: Hi, 1. Because _str.endswith()_ returns a __bool__ that `... if ... else ...` is redundant. 2. [] ar... |
May 13, 2015, 7:32 p.m. |
+5 |
Experience for appreciated comment Rita: 1 on suic: Hi, 1. Instead of `t == t.upper()` you could use `t.isupper()` With _str.isupper()_ you can omit the... |
May 13, 2015, 7:32 p.m. |
+1 |
Experience for voted comment Rita: 1 on suic: Hi, 1. Instead of `t == t.upper()` you could use `t.isupper()` With _str.isupper()_ you can omit the... |
May 13, 2015, 1:23 p.m. |
+1 |
Experience for voted comment Rita: 1 on suic: Hi, 1. Look at _sum()_ built-in function. 2. Lines 9-20 are redundant. |
May 13, 2015, 1:23 p.m. |
+5 |
Experience for appreciated comment Rita: 1 on suic: Hi, 1. Look at _sum()_ built-in function. 2. Lines 9-20 are redundant. |
May 11, 2015, 6:46 p.m. |
+1 |
Experience for voted comment Tammyton_004da1a6305049df9d07a: 1 on suic: Hi, 1. You have to __return__ your solution and __not print__. Your code returns a value only in `el... |
May 11, 2015, 6:46 p.m. |
+1 |
Experience for voted comment Tammyton_004da1a6305049df9d07a: 1 on suic: Hi, sorry, but DIY, I told you everything you need to change. Next time you can ask, if somebody can... |
May 9, 2015, 9:30 a.m. |
-5 |
Experience for voted solution eugene128736871: -1 on First-suic |
May 9, 2015, 2:30 a.m. |
-1 |
Experience for voted comment jocloud31: -1 on suic: Hi, your code has to be __inside__ a function called _checkio_, like this: def checkio(array): In yo... |
May 9, 2015, 2:30 a.m. |
+5 |
Experience for appreciated comment jocloud31: -1 on suic: Hi, your code has to be __inside__ a function called _checkio_, like this: def checkio(array): In yo... |
May 7, 2015, 5:34 a.m. |
+1 |
Experience for voted comment veky: 1 on suic: ad VS: Because I have to... :-/ The code I'm working on is, let's say, not manageable without _Intel... |
May 6, 2015, 3:39 p.m. |
+1 |
Experience for voted comment abe.dillon: 1 on suic: Hi, you clarified, that `lambda` is not a big deal for you, but let me have comment some of your sen... |
May 5, 2015, 5:45 p.m. |
+5 |
Experience for appreciated comment nastya.rusova: 1 on suic: Hi, your code has to be __inside__ a function called _checkio_, like this: def checkio(array): In yo... |
May 5, 2015, 5:45 p.m. |
+1 |
Experience for voted comment nastya.rusova: 1 on suic: Hi, your code has to be __inside__ a function called _checkio_, like this: def checkio(array): In yo... |
May 2, 2015, 11:59 p.m. |
+1 |
Experience for voted comment StefanPochmann: 1 on suic: Hi, you can get points without using any golfing trick, just by decreasing the indentation to 1 inst... |
May 1, 2015, 5:54 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, I think you misunderstood the task. Goal is to accumulate all the uppercase letters from the giv... |
April 30, 2015, 6:19 a.m. |
+5 |
Experience for appreciated comment tsumakazu: 1 on suic: Hi, 1. `"".join(text)` is useless, it does nothing. for i in text: # is enough ... 2. Look at _filte... |
April 30, 2015, 6:19 a.m. |
+1 |
Experience for voted comment tsumakazu: 1 on suic: Hi, 1. `"".join(text)` is useless, it does nothing. for i in text: # is enough ... 2. Look at _filte... |
April 30, 2015, 6:18 a.m. |
+5 |
Experience for appreciated comment tsumakazu: 1 on suic: Hi, all `...if...else...` are redundant, e. g.: if operation == "conjunction": return x and y |
April 30, 2015, 6:18 a.m. |
+1 |
Experience for voted comment tsumakazu: 1 on suic: Hi, all `...if...else...` are redundant, e. g.: if operation == "conjunction": return x and y |
April 30, 2015, 5:49 a.m. |
+1 |
Experience for voted comment tsumakazu: 1 on suic: Hi, why not: def checkio(words_set): for x in words_set: if x.endswith(tuple(words_set - {x})): retu... |
April 30, 2015, 5:49 a.m. |
+5 |
Experience for appreciated comment tsumakazu: 1 on suic: Hi, why not: def checkio(words_set): for x in words_set: if x.endswith(tuple(words_set - {x})): retu... |
April 30, 2015, 5:47 a.m. |
+1 |
Experience for voted comment tsumakazu: 1 on suic: Hi, `str_number` is __str__, so it's iterable for i in str_number: if i != '0': answer *= int(i) ret... |
April 30, 2015, 5:47 a.m. |
+5 |
Experience for appreciated comment tsumakazu: 1 on suic: Hi, `str_number` is __str__, so it's iterable for i in str_number: if i != '0': answer *= int(i) ret... |
April 30, 2015, 5:46 a.m. |
+1 |
Experience for voted comment tsumakazu: 1 on suic: Hi, 1. Last if is redundant: `return x >= 3` 2. On line 7 you can immediately `return True`. |
April 30, 2015, 5:46 a.m. |
+5 |
Experience for appreciated comment tsumakazu: 1 on suic: Hi, 1. Last if is redundant: `return x >= 3` 2. On line 7 you can immediately `return True`. |
April 29, 2015, 7:34 p.m. |
+4 |
Experience for voted solution skipla: 1 on One-liner (py2.7)-suic |
April 29, 2015, 7:14 p.m. |
+2 |
Experience for voted solution skipla: 2 on Less duplication-suic |
April 29, 2015, 1:48 p.m. |
+8 |
Experience for solved mission Min and Max |
April 28, 2015, 9:27 p.m. |
+13 |
Experience for voted solution Jemmity: 2 on Straightforward-suic |
April 28, 2015, 3:42 a.m. |
+1 |
Experience for voted comment lllz: 1 on suic: Ok, Mr. Ambiguity, have you heard about _common sense_? (Right, _common sense_ is also ambiguous.) I... |