July 13, 2015, 5:23 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, I don't even need my very limited Russian to see the problem: def checkio(number): bin(number).c... |
July 13, 2015, 5:16 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, look at [this](http://www.checkio.org/forum/post/3269/6-the-most-common-mistakes/). |
July 13, 2015, 5:15 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, see [this](http://www.checkio.org/forum/post/3269/6-the-most-common-mistakes/). |
July 12, 2015, 7:30 p.m. |
+10 |
Experience for voted solution siebenschlaefer: 2 on First-suic |
July 12, 2015, 2:12 p.m. |
+2 |
Experience for voted solution ceu9jo: 1 on First-suic |
July 11, 2015, 1:20 p.m. |
+2 |
Experience for voted solution brave: 1 on any and map-suic |
July 10, 2015, 8:58 a.m. |
+2 |
Experience for voted solution Zyzlik: 1 on With for...else :)-suic |
July 9, 2015, 9:08 p.m. |
+7 |
Experience for voted solution siebenschlaefer: 1 on Using rpartition-suic |
July 9, 2015, 7:05 p.m. |
+13 |
Experience for voted solution siebenschlaefer: 2 on Even shorter with filter-suic |
July 9, 2015, 4:24 p.m. |
+2 |
Experience for voted solution ShadKorca: 1 on One-liner-suic |
July 9, 2015, 6:20 a.m. |
+10 |
Experience for voted solution siebenschlaefer: 2 on First-suic |
July 6, 2015, 4:16 a.m. |
+2 |
Experience for voted solution CaptCalculator: 2 on One-liner variation-suic |
July 5, 2015, 7:26 a.m. |
+4 |
Experience for voted solution lsk45: 4 on Less duplication-suic |
July 3, 2015, 4:55 p.m. |
+2 |
Experience for voted solution ShadKorca: 1 on Shorter one-liner-suic |
June 30, 2015, 9:31 p.m. |
+2 |
Experience for voted solution lsk45: 1 on LeFree's shortened-suic |
June 30, 2015, 3:39 p.m. |
+2 |
Experience for voted solution RickTrager: 2 on First-suic |
June 29, 2015, 2:02 p.m. |
+7 |
Experience for voted solution Hojo: 1 on First-suic |
June 29, 2015, 12:31 p.m. |
+1 |
Experience for voted comment a3a3ia3: 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 29, 2015, 9:33 a.m. |
+1 |
Experience for voted comment fariik: 1 on suic: Hi, 1. `verif` is redundant. 2. `if i not in text.lower(): return False` 3. line 14 is redundant. |
June 29, 2015, 9:33 a.m. |
+5 |
Experience for appreciated comment fariik: 1 on suic: Hi, 1. `verif` is redundant. 2. `if i not in text.lower(): return False` 3. line 14 is redundant. |
June 29, 2015, 5:11 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Where is your question? And btw.: Why do you `import sys`? |
June 29, 2015, 5:11 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: What do you think, what does your function actually returns? Hint: You have only one `return` statem... |
June 29, 2015, 5:11 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, no. The answer in third test must be three. |
June 29, 2015, 5:11 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, `lists`, `tuples` etc. are indexed from 0 (not 1). Look at line 3 again. Hint: The last element ... |
June 29, 2015, 5:09 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, two things: 1. Read the [FAQ](http://www.checkio.org/forum/post/3271/faq/). 2. Look at the examp... |
June 24, 2015, 4:20 a.m. |
+1 |
Experience for voted solution bendoerr: 1 on One-liner variation-suic |
June 23, 2015, 10:57 a.m. |
+1 |
Experience for voted solution deClot: 1 on One-liner variation-suic |
June 22, 2015, 5:01 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, first of all your use of __Counter__. Have you read the [documentation](https://docs.python.org/... |
June 22, 2015, 4:58 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: > I am confused by the interface and where to begin. I know that this is an old thread and what I wa... |
June 20, 2015, 11:19 a.m. |
+1 |
Experience for voted comment Gray_Wind: 1 on suic: Hi, whatabout _str.endswith()_? |
June 19, 2015, 6:42 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, there are many issues: 1. Your function has to be `checkio` not `checkPassword`. 2. `lower = str... |
June 18, 2015, 6:39 a.m. |
+5 |
Experience for appreciated comment bryukh: 1 on suic: Hi, those two things are different ~~~~ # Compare this: >>> words = "Hello, World" >>> for n in word... |
June 18, 2015, 6:39 a.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, those two things are different ~~~~ # Compare this: >>> words = "Hello, World" >>> for n in word... |
June 17, 2015, 10:02 p.m. |
+5 |
Experience for appreciated comment kirillsuetov: 1 on suic: Hi, look at _filter()_ built-in or _generator expressions_. |
June 17, 2015, 10:02 p.m. |
+1 |
Experience for voted comment kirillsuetov: 1 on suic: Hi, look at _filter()_ built-in or _generator expressions_. |
June 17, 2015, 10:01 p.m. |
+5 |
Experience for appreciated comment kirillsuetov: 1 on suic: Hi, look at _extended slices_ and _sum()_ built-in function. |
June 17, 2015, 10:01 p.m. |
+1 |
Experience for voted comment kirillsuetov: 1 on suic: Hi, look at _extended slices_ and _sum()_ built-in function. |
June 17, 2015, 7:55 p.m. |
+5 |
Experience for appreciated comment adiabaticplus: 1 on suic: Hi, those two things are different ~~~~ # Compare this: >>> words = "Hello, World" >>> for n in word... |
June 17, 2015, 7:55 p.m. |
+1 |
Experience for voted comment adiabaticplus: 1 on suic: Hi, those two things are different ~~~~ # Compare this: >>> words = "Hello, World" >>> for n in word... |
June 17, 2015, 9:22 a.m. |
+4 |
Experience for voted solution a5ff9934d159: 2 on XOR-suic |
June 11, 2015, 2:06 p.m. |
+1 |
Experience for voted comment vktr-brvl: 1 on suic: Hi, _list()_ is redundant. |
June 11, 2015, 2:06 p.m. |
+5 |
Experience for appreciated comment vktr-brvl: 1 on suic: Hi, _list()_ is redundant. |
June 11, 2015, 2:05 p.m. |
+5 |
Experience for appreciated comment vktr-brvl: 1 on suic: Hi, _sum()_ is a built-in function. Do not redefine it. |
June 11, 2015, 2:05 p.m. |
+1 |
Experience for voted comment vktr-brvl: 1 on suic: Hi, _sum()_ is a built-in function. Do not redefine it. |
June 10, 2015, 5:27 p.m. |
+1 |
Experience for voted comment Pumba_UA: 1 on suic: Hi, 1. Look at _set()_. 2. Line 11 is not Pythonic and you can replace lines 11-13 with: return not ... |
June 10, 2015, 5:27 p.m. |
+5 |
Experience for appreciated comment Pumba_UA: 1 on suic: Hi, 1. Look at _set()_. 2. Line 11 is not Pythonic and you can replace lines 11-13 with: return not ... |
June 10, 2015, 5:14 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, look _sorted()_ and its `key` parameter. |
June 10, 2015, 5:14 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, look _sorted()_ and its `key` parameter. |
June 10, 2015, 4:20 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, `.__sub__()` is a so called _magic method_. Have a look at [this](http://www.checkio.org/forum/p... |
June 10, 2015, 4:20 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, `.__sub__()` is a so called _magic method_. Have a look at [this](http://www.checkio.org/forum/p... |
June 10, 2015, 4:08 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, in fact it does not matter here in Checkio and it is not a law :) I would say that it can save y... |
June 10, 2015, 4:08 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, in fact it does not matter here in Checkio and it is not a law :) I would say that it can save y... |
June 10, 2015, 12:43 p.m. |
+1 |
Experience for voted comment Leonya: 1 on suic: Hi, actually not. _map()_ and _filter()_ are good when you use some built-in function e. g.: filter(... |
June 10, 2015, 12:43 p.m. |
+5 |
Experience for appreciated comment Leonya: 1 on suic: Hi, actually not. _map()_ and _filter()_ are good when you use some built-in function e. g.: filter(... |
June 10, 2015, 12:43 p.m. |
+5 |
Experience for appreciated comment Leonya: 1 on suic: Hi, good point, but the good thing is, that _sorted()_ does not care about. |
June 10, 2015, 12:43 p.m. |
+1 |
Experience for voted comment Leonya: 1 on suic: Hi, good point, but the good thing is, that _sorted()_ does not care about. |
June 10, 2015, 12:41 p.m. |
+5 |
Experience for appreciated comment Leonya: 1 on suic: Hi, look at _sum()_ and _extended slices_. |
June 10, 2015, 12:41 p.m. |
+1 |
Experience for voted comment Leonya: 1 on suic: Hi, look at _sum()_ and _extended slices_. |
June 10, 2015, 12:11 p.m. |
+1 |
Experience for voted comment Leonya: 1 on suic: Hi, _list()_ is redundant. |
June 10, 2015, 12:11 p.m. |
+5 |
Experience for appreciated comment Leonya: 1 on suic: Hi, _list()_ is redundant. |
June 10, 2015, 11:54 a.m. |
+1 |
Experience for voted comment Leonya: 1 on suic: Hi, look at _filter()_ built-in function. |
June 10, 2015, 11:54 a.m. |
+5 |
Experience for appreciated comment Leonya: 1 on suic: Hi, look at _filter()_ built-in function. |
June 9, 2015, 10:38 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, you can use _generator expression_ with _sum()_: return sum(x in text.lower() for x in words) |
June 9, 2015, 10:38 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, you can use _generator expression_ with _sum()_: return sum(x in text.lower() for x in words) |
June 9, 2015, 10:38 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, why not `n - m`. |
June 9, 2015, 10:38 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, why not `n - m`. |
June 9, 2015, 10:38 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, look at _sum()_ and _extended slices_. |
June 9, 2015, 10:38 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, look at _sum()_ and _extended slices_. |
June 9, 2015, 10:38 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, the last `if` is redundant: return len(al) == 26 Instead of lines 4-6 you can use _set comprehen... |
June 9, 2015, 10:38 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, the last `if` is redundant: return len(al) == 26 Instead of lines 4-6 you can use _set comprehen... |
June 9, 2015, 10:37 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, the last `if` is redundant, you can return the condition directly: return 'boo' in stack |
June 9, 2015, 10:37 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, the last `if` is redundant, you can return the condition directly: return 'boo' in stack |
June 9, 2015, 10:37 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, you can use `*` operator to unpack `date1` and `date2`, e. g.: d1 = date(*date1) And from dateti... |
June 9, 2015, 10:37 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, you can use `*` operator to unpack `date1` and `date2`, e. g.: d1 = date(*date1) And from dateti... |
June 9, 2015, 10:35 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, __bool__ is subclass of __int__. You don't need all those nested `if..else`s, e. g.: elif operat... |
June 9, 2015, 10:35 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, __bool__ is subclass of __int__. You don't need all those nested `if..else`s, e. g.: elif operat... |
June 9, 2015, 10:35 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, _str()_ is redundant as _bin()_ returns __str__. |
June 9, 2015, 10:35 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, _str()_ is redundant as _bin()_ returns __str__. |
June 9, 2015, 10:34 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, I meant this: return any(x != y and x.endswith(y) for x in s for y in s) |
June 9, 2015, 10:34 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, I meant this: return any(x != y and x.endswith(y) for x in s for y in s) |
June 9, 2015, 10:34 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, you could use `and`, _any()_ and _generator expression_. |
June 9, 2015, 10:34 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, you could use `and`, _any()_ and _generator expression_. |
June 9, 2015, 10:33 p.m. |
+5 |
Experience for appreciated comment nastyajeid: 1 on suic: Hi, look at _enumerate()_. |
June 9, 2015, 10:33 p.m. |
+1 |
Experience for voted comment nastyajeid: 1 on suic: Hi, look at _enumerate()_. |
June 9, 2015, 8:22 p.m. |
+4 |
Experience for voted solution Djekke: 4 on One-liner variation-suic |
June 9, 2015, 10:30 a.m. |
+5 |
Experience for appreciated comment saxtouri: 1 on suic: Hi, it is called _list comprehension_ (see the [documentation](https://docs.python.org/2/tutorial/da... |
June 9, 2015, 10:30 a.m. |
+1 |
Experience for voted comment saxtouri: 1 on suic: Hi, it is called _list comprehension_ (see the [documentation](https://docs.python.org/2/tutorial/da... |
June 8, 2015, 8:41 p.m. |
+8 |
Experience for solved mission The Square Chest |
June 8, 2015, 8:23 p.m. |
+1 |
Experience for voted comment JanKaifer: 1 on suic: Hi, that `if` is redundant: return (pattern, command) in [(42,"12a0b3e4"), ...] |
June 8, 2015, 8:23 p.m. |
+5 |
Experience for appreciated comment JanKaifer: 1 on suic: Hi, that `if` is redundant: return (pattern, command) in [(42,"12a0b3e4"), ...] |
June 8, 2015, 8:22 p.m. |
+5 |
Experience for appreciated comment JanKaifer: 1 on suic: Hi, use dictionary for this type of cheating :) |
June 8, 2015, 8:22 p.m. |
+1 |
Experience for voted comment JanKaifer: 1 on suic: Hi, use dictionary for this type of cheating :) |
June 8, 2015, 5:14 p.m. |
+5 |
Experience for appreciated comment JanKaifer: 1 on suic: Na checkio je oficialni jazyk anglictina. Jinak by tady asi polovina lidi psala azbukou :) |
June 8, 2015, 5:14 p.m. |
+1 |
Experience for voted comment JanKaifer: 1 on suic: Na checkio je oficialni jazyk anglictina. Jinak by tady asi polovina lidi psala azbukou :) |
June 8, 2015, 5 p.m. |
+1 |
Experience for voted comment JanKaifer: 1 on suic: Hi, this is C-style and it's not Pythonic: 1. Line 80: `if rings:` is enough. 2. _min()_ and _max()_... |
June 8, 2015, 5 p.m. |
+5 |
Experience for appreciated comment JanKaifer: 1 on suic: Hi, this is C-style and it's not Pythonic: 1. Line 80: `if rings:` is enough. 2. _min()_ and _max()_... |
June 8, 2015, 4:58 p.m. |
+6 |
Experience for voted solution JanKaifer: 4 on JanKaifer's Refactored (or simple made simple)-suic |
June 8, 2015, 4:56 p.m. |
+5 |
Experience for appreciated comment JanKaifer: 1 on suic: Hi, why not: return (game_result[0][0]==who and ...) That `if...else` is redundant. |
June 8, 2015, 4:56 p.m. |
+1 |
Experience for voted comment JanKaifer: 1 on suic: Hi, why not: return (game_result[0][0]==who and ...) That `if...else` is redundant. |
June 8, 2015, 4:12 p.m. |
+5 |
Experience for appreciated comment GelaGela: 1 on suic: Hi, you could write return [i for i in data if data.count(i) > 1] |