13
Jakob van Bethlehem
Last seen 5 years ago
Member for 10 years, 4 months
Difficulty Normal
The extra 'int' in the last line is really not needed, as the inputs are already int
More
You could skip calculation of the average, because _len(l)_ will be the same for each row, or in other words: _index(max(sum))==index(max(avg))_
More
Just in case you didn't check other solutions yet: the builtin _count_ method does exactly what you explicitly typed in the loop
More
Very creative how you have used some algebraic properties of numbers to determine whether the number is divisible.
More
You were probably not aware yet of the _**_ operator in Python? See https://docs.python.org/2/tutorial/introduction.html#id1
More
Excellent solution, reminding us all of the possibility to add a step to the slice operator
More
There are quite a few 'non-Pythonic' elements to this:
* _if array==[]_ is exactly equivalent to just using _if array_
* in Python you really shouldn't write a loop over an index, which is then used to access a list (unless you really, really can not do otherwise). Instead you should over the list d
More