April 27, 2015, 9:26 p.m. |
+5 |
Experience for appreciated comment JayLee: 1 on suic: Hi, it's a little bit "nit-pickish" but pay attention on `True` and _true_ `False` and _false_. Look... |
April 27, 2015, 9:26 p.m. |
+1 |
Experience for voted comment JayLee: 1 on suic: Hi, it's a little bit "nit-pickish" but pay attention on `True` and _true_ `False` and _false_. Look... |
April 27, 2015, 9 p.m. |
+5 |
Experience for appreciated comment JayLee: 1 on suic: Hi, few comments: 1. `lower_case`, `upper_case` and `digit` are actually _boolean flags_. So you can... |
April 27, 2015, 9 p.m. |
+1 |
Experience for voted comment JayLee: 1 on suic: Hi, few comments: 1. `lower_case`, `upper_case` and `digit` are actually _boolean flags_. So you can... |
April 27, 2015, 8:47 p.m. |
+1 |
Experience for voted comment dstdfx: 1 on suic: Hi, look at documentation or simply write `help(str.upper)` in command line. It converts string to u... |
April 27, 2015, 8:47 p.m. |
+5 |
Experience for appreciated comment dstdfx: 1 on suic: Hi, look at documentation or simply write `help(str.upper)` in command line. It converts string to u... |
April 27, 2015, 3:56 p.m. |
+1 |
Experience for voted comment lllz: 1 on suic: `My timeline != Timeline` `My timeline` under your avatar points to the same URL than the one in the... |
April 27, 2015, 3:53 p.m. |
+1 |
Experience for voted comment DiZ: 1 on suic: `My timeline != Timeline` `My timeline` under your avatar points to the same URL than the one in the... |
April 24, 2015, 10:18 a.m. |
+1 |
Experience for voted comment gileadslostson: 1 on suic: Hi, it's a very clever solution. I owe you 113 points. I have a habit to try out the code I post in ... |
April 24, 2015, 10:18 a.m. |
+5 |
Experience for appreciated comment gileadslostson: 1 on suic: Hi, it's a very clever solution. I owe you 113 points. I have a habit to try out the code I post in ... |
April 24, 2015, 10:12 a.m. |
+5 |
Experience for appreciated comment gileadslostson: 1 on suic: Hi, change `def` to `lambda` like this: a_factaral = lambda n: |
April 24, 2015, 10:12 a.m. |
+1 |
Experience for voted comment gileadslostson: 1 on suic: Hi, change `def` to `lambda` like this: a_factaral = lambda n: |
April 24, 2015, 9:48 a.m. |
+1 |
Experience for voted comment gileadslostson: 1 on suic: Remove lines 3-11. |
April 24, 2015, 9:48 a.m. |
+5 |
Experience for appreciated comment gileadslostson: 1 on suic: Remove lines 3-11. |
April 23, 2015, 10:31 a.m. |
+5 |
Experience for appreciated comment clavicon: 1 on suic: Hi, That's right. `array` is not defined, you don't have any `array = something` there. _checkio()_ ... |
April 23, 2015, 10:31 a.m. |
+1 |
Experience for voted comment clavicon: 1 on suic: Hi, That's right. `array` is not defined, you don't have any `array = something` there. _checkio()_ ... |
April 21, 2015, 11:01 p.m. |
+2 |
Experience for voted solution Taca: 1 on First-suic |
April 21, 2015, 3:47 p.m. |
+1 |
Experience for voted comment DiZ: 1 on suic: Hi, your approach is more or less correct. > I don't know how to combine all the booleans together S... |
April 20, 2015, 7:57 p.m. |
+1 |
Experience for voted solution pwsa: 1 on Shortened-suic |
April 20, 2015, 4:39 p.m. |
+5 |
Experience for appreciated comment otonvm: 1 on suic: Why loop? Look at _enumerate()_. |
April 20, 2015, 4:39 p.m. |
+1 |
Experience for voted comment otonvm: 1 on suic: Why loop? Look at _enumerate()_. |
April 20, 2015, 4:13 p.m. |
+15 |
Experience for solved mission Pawn Brotherhood |
April 20, 2015, 10:24 a.m. |
+5 |
Experience for appreciated comment joshuaselwyn: 1 on suic: Hi, I suppose you use Python 3.3. In Python 3.x `/` is _true division_ (and not _integer division_ a... |
April 20, 2015, 10:24 a.m. |
+1 |
Experience for voted comment joshuaselwyn: 1 on suic: Hi, I suppose you use Python 3.3. In Python 3.x `/` is _true division_ (and not _integer division_ a... |
April 20, 2015, 8:56 a.m. |
+1 |
Experience for voted comment oduvan: 1 on suic: Man... why??? 1. Forget about `else: pass`! Those lines do nothing. 2. Use `if` wisely: answer = cou... |
April 20, 2015, 8:55 a.m. |
+1 |
Experience for voted comment oduvan: 1 on suic: Why? |
April 19, 2015, 5:56 p.m. |
+1 |
Experience for voted comment Arandomusername: 1 on suic: Hi, 1. I tried [this](http://www.checkio.org/mission/roman-numerals/publications/suic/python-3/inspi... |
April 19, 2015, 5:56 p.m. |
+5 |
Experience for appreciated comment Arandomusername: 1 on suic: Hi, 1. I tried [this](http://www.checkio.org/mission/roman-numerals/publications/suic/python-3/inspi... |
April 19, 2015, 6:42 a.m. |
+1 |
Experience for voted comment ZeratulAyuris: 1 on suic: Hi, you could write: return sum(x in text.lower() for x in words) |
April 19, 2015, 6:42 a.m. |
+5 |
Experience for appreciated comment ZeratulAyuris: 1 on suic: Hi, you could write: return sum(x in text.lower() for x in words) |
April 19, 2015, 3:28 a.m. |
+1 |
Experience for voted comment grifmang: 1 on suic: Hi, lines 2-4 are redundant, just remove them. _numbers_array_ is iterable by itself so you don't ha... |
April 19, 2015, 3:28 a.m. |
+5 |
Experience for appreciated comment grifmang: 1 on suic: Hi, lines 2-4 are redundant, just remove them. _numbers_array_ is iterable by itself so you don't ha... |
April 18, 2015, 8:49 p.m. |
+5 |
Experience for solved mission The End of Other |
April 18, 2015, 11:37 a.m. |
+5 |
Experience for appreciated comment lukasso: 1 on suic: Hi, you don't need _re_, look at _filter()_ built-in and _str.isupper()_. |
April 18, 2015, 11:37 a.m. |
+1 |
Experience for voted comment lukasso: 1 on suic: Hi, you don't need _re_, look at _filter()_ built-in and _str.isupper()_. |
April 18, 2015, 11:37 a.m. |
+1 |
Experience for voted comment lukasso: 1 on suic: Hi, you don't that `else` branch: for i in range(0,(len(t_words)-2)) : if ((t_words[i].isalpha()) an... |
April 18, 2015, 11:37 a.m. |
+5 |
Experience for appreciated comment lukasso: 1 on suic: Hi, you don't that `else` branch: for i in range(0,(len(t_words)-2)) : if ((t_words[i].isalpha()) an... |
April 18, 2015, 11:36 a.m. |
+5 |
Experience for appreciated comment lukasso: 1 on suic: Hi, 1. too many parentheses. 2. _bin()_ returns __str__ so _str()_ is redundant. return bin(number).... |
April 18, 2015, 11:36 a.m. |
+1 |
Experience for voted comment lukasso: 1 on suic: Hi, 1. too many parentheses. 2. _bin()_ returns __str__ so _str()_ is redundant. return bin(number).... |
April 18, 2015, 11:34 a.m. |
+5 |
Experience for appreciated comment IharHarbuz: 1 on suic: Hi, you could omit `mediana` variable just return directly in `if...else` |
April 18, 2015, 11:34 a.m. |
+1 |
Experience for voted comment IharHarbuz: 1 on suic: Hi, you could omit `mediana` variable just return directly in `if...else` |
April 18, 2015, 11:34 a.m. |
+4 |
Experience for voted solution lukasso: 2 on One-liner variation-suic |
April 18, 2015, 11:34 a.m. |
+1 |
Experience for voted comment lukasso: 1 on suic: Hi, 1. You can write `count += 1` 2. Look at _slices_ and _enumerate_: for i, j in enumerate(sequenc... |
April 18, 2015, 11:34 a.m. |
+5 |
Experience for appreciated comment lukasso: 1 on suic: Hi, 1. You can write `count += 1` 2. Look at _slices_ and _enumerate_: for i, j in enumerate(sequenc... |
April 18, 2015, 11:32 a.m. |
+5 |
Experience for appreciated comment lukasso: 1 on suic: Hi, you can use `*` to unpack the date, e. g.: start = date(*date1) |
April 18, 2015, 11:32 a.m. |
+1 |
Experience for voted comment lukasso: 1 on suic: Hi, you can use `*` to unpack the date, e. g.: start = date(*date1) |
April 17, 2015, 10:48 a.m. |
+5 |
Experience for appreciated comment oduvan: 1 on suic: Hi, 1. You can write `count += 1` 2. Look at _slices_ and _enumerate_: for i, j in enumerate(sequenc... |
April 17, 2015, 10:48 a.m. |
+1 |
Experience for voted comment oduvan: 1 on suic: Hi, 1. You can write `count += 1` 2. Look at _slices_ and _enumerate_: for i, j in enumerate(sequenc... |
April 17, 2015, 7:24 a.m. |
+2 |
Experience for voted solution singhcoolguy: 1 on grigoriytretyakov's shortened using evil eval-suic |
April 17, 2015, 12:14 a.m. |
+5 |
Experience for solved mission Unlucky Days |
April 16, 2015, 9:56 p.m. |
+5 |
Experience for created mission Unlucky Days |
April 16, 2015, 7:33 p.m. |
+5 |
Experience for solved mission The Best Number Ever |
April 14, 2015, 10 a.m. |
+1 |
Experience for voted comment gileadslostson: 1 on suic: Hi, look at __collections.Counter__. |
April 14, 2015, 10 a.m. |
+5 |
Experience for appreciated comment gileadslostson: 1 on suic: Hi, look at __collections.Counter__. |
April 14, 2015, 9:15 a.m. |
+1 |
Experience for voted comment spoty: 1 on suic: Hi, I know that is an older solution. I suggest some cleanup: c = map(int, bin(c)[2:].zfill(len(w)))... |
April 14, 2015, 9:15 a.m. |
+5 |
Experience for appreciated comment spoty: 1 on suic: Hi, I know that is an older solution. I suggest some cleanup: c = map(int, bin(c)[2:].zfill(len(w)))... |
April 14, 2015, 7:58 a.m. |
+1 |
Experience for voted comment veky: 1 on suic: Whatabout: Veky is an algorithm (or machine) turning šlivovica into Python code? :D (When I read the... |
April 14, 2015, 7:58 a.m. |
+5 |
Experience for appreciated comment veky: 1 on suic: Whatabout: Veky is an algorithm (or machine) turning šlivovica into Python code? :D (When I read the... |
April 14, 2015, 5:37 a.m. |
+1 |
Experience for voted comment hanpari: 1 on suic: Hi, if you mean extra test no. 7 it's actually correct. In C# it would be pain to debug such code, b... |
April 14, 2015, 5:37 a.m. |
+5 |
Experience for appreciated comment hanpari: 1 on suic: Hi, if you mean extra test no. 7 it's actually correct. In C# it would be pain to debug such code, b... |
April 13, 2015, 5:20 p.m. |
+5 |
Experience for appreciated comment hanpari: 1 on suic: Nice, but I would shorten _eq_ a bit: eq = lambda w: sorted(filter(str.isalpha, w.lower())) |
April 13, 2015, 5:20 p.m. |
+1 |
Experience for voted comment hanpari: 1 on suic: Nice, but I would shorten _eq_ a bit: eq = lambda w: sorted(filter(str.isalpha, w.lower())) |
April 13, 2015, 5:18 p.m. |
+1 |
Experience for voted comment hanpari: 1 on suic: Hi, why not _filter()_?: "".join(filter(str.isupper, message)) |
April 13, 2015, 5:18 p.m. |
+5 |
Experience for appreciated comment hanpari: 1 on suic: Hi, why not _filter()_?: "".join(filter(str.isupper, message)) |
April 13, 2015, 5:18 p.m. |
+5 |
Experience for solved mission Word Pattern |
April 13, 2015, 5:17 p.m. |
+1 |
Experience for voted comment hanpari: 1 on suic: Or even: return len(args) and max(args) - min(args) |
April 13, 2015, 5:17 p.m. |
+5 |
Experience for appreciated comment hanpari: 1 on suic: Or even: return len(args) and max(args) - min(args) |
April 13, 2015, 2:46 p.m. |
+5 |
Experience for appreciated comment mmngreco: 1 on suic: Hi, it's a good a practice to _map lambdas_. Even if you use lambda, you can shorten it: return sum(... |
April 13, 2015, 2:46 p.m. |
+1 |
Experience for voted comment mmngreco: 1 on suic: Hi, it's a good a practice to _map lambdas_. Even if you use lambda, you can shorten it: return sum(... |
April 13, 2015, 2:44 p.m. |
+1 |
Experience for voted comment hueyhuecoyotl: 1 on suic: Why not?: return [i for i in data if data.count(i) > 1] |
April 13, 2015, 2:44 p.m. |
+5 |
Experience for appreciated comment mmngreco: 1 on suic: Hi, you can use _reduce()_ here: return reduce(int.__mul__, map(int, num_txt)) |
April 13, 2015, 2:44 p.m. |
+1 |
Experience for voted comment mmngreco: 1 on suic: Hi, you can use _reduce()_ here: return reduce(int.__mul__, map(int, num_txt)) |
April 13, 2015, 2:43 p.m. |
+1 |
Experience for voted comment mmngreco: 1 on suic: Hi, `lambda` is redundant: for e in map(unicode.isalpha, words.split()) |
April 13, 2015, 2:43 p.m. |
+5 |
Experience for appreciated comment mmngreco: 1 on suic: Hi, `lambda` is redundant: for e in map(unicode.isalpha, words.split()) |
April 13, 2015, 2:28 p.m. |
+1 |
Experience for voted comment mmngreco: 1 on suic: Hi, have a look at [_A Guide to Pythons magic methods_](http://www.checkio.org/forum/post/3566/a-gui... |
April 13, 2015, 2:28 p.m. |
+5 |
Experience for appreciated comment mmngreco: 1 on suic: Hi, have a look at [_A Guide to Pythons magic methods_](http://www.checkio.org/forum/post/3566/a-gui... |
April 13, 2015, 2:17 p.m. |
+5 |
Experience for appreciated comment mmngreco: 1 on suic: Hi, __str__ is immutable in python, so it's not the best type for accumulation. Tip: Look at _filter... |
April 13, 2015, 2:17 p.m. |
+1 |
Experience for voted comment mmngreco: 1 on suic: Hi, __str__ is immutable in python, so it's not the best type for accumulation. Tip: Look at _filter... |
April 13, 2015, 2:16 p.m. |
+1 |
Experience for voted comment mmngreco: 1 on suic: Hi, that `lambda` is not necessary. You can use `*` for unpacking, e. g.: days(*date1) |
April 13, 2015, 2:16 p.m. |
+5 |
Experience for appreciated comment mmngreco: 1 on suic: Hi, that `lambda` is not necessary. You can use `*` for unpacking, e. g.: days(*date1) |
April 13, 2015, 1:59 p.m. |
+1 |
Experience for voted comment mmngreco: 1 on suic: Hi, generator expression would be nicer. Or you can write: return sum(map(text.lower().__contains__,... |
April 13, 2015, 1:59 p.m. |
+5 |
Experience for appreciated comment mmngreco: 1 on suic: Hi, generator expression would be nicer. Or you can write: return sum(map(text.lower().__contains__,... |
April 13, 2015, 12:36 p.m. |
+1 |
Experience for voted comment bryukh: 1 on suic: Hi, can't do what? |
April 13, 2015, 11:41 a.m. |
+30 |
Experience for solved mission Brackets |
April 13, 2015, 8:59 a.m. |
+5 |
Experience for appreciated comment dedked: 1 on suic: Hi, [] are redundant. Tip: Look at _filter()_. |
April 13, 2015, 8:59 a.m. |
+1 |
Experience for voted comment dedked: 1 on suic: Hi, [] are redundant. Tip: Look at _filter()_. |
April 12, 2015, 9:52 p.m. |
+1 |
Experience for voted comment KarKarbI4: 1 on suic: What a stairway. :) Look at _any()_. |
April 12, 2015, 9:52 p.m. |
+5 |
Experience for appreciated comment KarKarbI4: 1 on suic: What a stairway. :) Look at _any()_. |
April 12, 2015, 7:47 p.m. |
+4 |
Experience for voted solution lukasso: 2 on One-liner-suic |
April 12, 2015, 7:43 p.m. |
+3 |
Experience for voted solution lukasso: 2 on One-liner-suic |
April 12, 2015, 11:45 a.m. |
+13 |
Experience for voted solution kono8: 2 on Syaopin's modified-suic |
April 10, 2015, 11:39 p.m. |
+1 |
Experience for voted solution aseoparson: 1 on One-liner variation-suic |
April 9, 2015, 8:53 p.m. |
+5 |
Experience for appreciated comment hanpari: 1 on suic: I like [this video](https://www.youtube.com/watch?v=HQ887aOZITY) including the strong Italian accent... |
April 9, 2015, 8:53 p.m. |
+1 |
Experience for voted comment hanpari: 1 on suic: I like [this video](https://www.youtube.com/watch?v=HQ887aOZITY) including the strong Italian accent... |
April 9, 2015, 3:28 p.m. |
+1 |
Experience for voted comment PatrickMoran: 1 on suic: Hi, from top to bottom left to right: # The first if checks if n_row are n_col are valid indices. # ... |
April 9, 2015, 2:30 p.m. |
+1 |
Experience for voted comment hanpari: 1 on suic: Hi, this is quite repetitive: # Reformatting shows it: lst = [degrees(acos((c * c - a * a - b * b)/(... |
April 8, 2015, 7:17 a.m. |
+5 |
Experience for appreciated comment psystyle: 1 on suic: Hi, you can write: return sum(word.lower() in text.lower() for word in words) |
April 8, 2015, 7:17 a.m. |
+1 |
Experience for voted comment psystyle: 1 on suic: Hi, you can write: return sum(word.lower() in text.lower() for word in words) |
April 8, 2015, 7:13 a.m. |
+5 |
Experience for appreciated comment psystyle: 1 on suic: Hi, [] is redundant. _filter()_ built-in would be better here: return ''.join(filter(str.isupper, te... |
April 8, 2015, 7:13 a.m. |
+1 |
Experience for voted comment psystyle: 1 on suic: Hi, [] is redundant. _filter()_ built-in would be better here: return ''.join(filter(str.isupper, te... |