March 17, 2015, 1:58 p.m. |
+ 1 |
for Comment
suic: Hi, I agree that it is simple, but generator expressions and list comprehensions are faster than for...
|
March 17, 2015, 9:55 a.m. |
+ 1 |
for Comment
suic: Hi, you can omit the parentheses around conditions.
|
March 17, 2015, 9:49 a.m. |
+ 1 |
for Comment
suic: Hi, Empty array is treated as false, so you can write: if not array: return 0 And also: array[0::2] ...
|
March 17, 2015, 9:46 a.m. |
+ 1 |
for Comment
suic: Hi, you can do it without _re_. [_filter()_](https://docs.python.org/3/library/functions.html?highli...
|
March 16, 2015, 5:09 p.m. |
+ 1 |
for Comment
suic: Try the [official documentation](https://docs.python.org/3/) before or right after googling ;) The Q...
|
March 16, 2015, 4:52 p.m. |
+ 1 |
for Comment
suic: Hi, you can do it without _math.pow()_. There's a power operator: __**__ (see [this](https://docs.py...
|
March 15, 2015, 10:42 p.m. |
+ 1 |
for
First-monkshorin
|
March 15, 2015, 10:03 p.m. |
+ 1 |
for Comment
suic: Hi, you have to return on line 3 and 5 and not print, you can also remove the last line.
|
March 15, 2015, 9:58 p.m. |
+ 1 |
for
oneLine-donBit
|