You are viewing a single comment's thread. Return to all comments →
Hi I also use the same way to count in Python print(arr.count(max(arr))), but the result is always 2, none, which show me the worng answer. I do not know why it show me (2, none) instead of just 2.
Try to return the value from the function instead of printing.