Oct. 1, 2014, 6:26 a.m. |
+ 1 |
for Comment
Akay: Maybe better will be if everytime didn't calculated seq_len. You can find all allowable sequences us...
|
Sept. 30, 2014, 11 a.m. |
+ 1 |
for Comment
veky: Lion in Cairo is such a powerful metaphor. :-) Putting that aside... it's a matter of debate how man...
|
Sept. 28, 2014, 3:31 p.m. |
+ 1 |
for Comment
Cjkjvfnby: You can use **elif** or **else** to avoid additional checks. No need to have **operator** variable. ...
|
Sept. 28, 2014, 3:28 p.m. |
+ 1 |
for Comment
Cjkjvfnby: http://www.checkio.org/forum/post/1618/proper-way-to-check-if-sequence-is-empty/ you can use str.sta...
|
Sept. 8, 2014, 6:01 p.m. |
+ 1 |
for Comment
Cjkjvfnby: You code is little inconsistent, some times calc return bool, sometimes int. You can simplify your r...
|
Sept. 8, 2014, 5:51 p.m. |
+ 1 |
for Comment
Cjkjvfnby: I prefer to use dict literals: {'conjunction': and_} Dont wrap **=** with spaces in function call.
|
Sept. 8, 2014, 5:50 p.m. |
+ 1 |
for Comment
Sim0000: Yes. I think I should raise exception.
|
Sept. 8, 2014, 5:48 p.m. |
+ 1 |
for Comment
Sim0000: Maybe dictionary solution is more pythonic :-)
|
Sept. 6, 2014, 8:13 p.m. |
+ 1 |
for Comment
shshlomy: very nice solution i will use: if x[int(i[0])] == x[int(i[1])] == x[int(i[2])]!="." instead
|