There is a written piece of code :

The idea is to iterate an array in a loop, if a match is found for elements from two arrays, create a new array with ordinal index n and add the following elements, which are iterated in a loop, to the previously created array coorsinates[n] , before the next match in if loop.

Now the code gives an error of the form:

 Traceback (most recent call last): File "python", line 25, in <module> TypeError: 'NoneType' object is not callable 

If necessary, I will clarify the essence of the issue if I have written insufficiently clearly.

  • one
    Your mul function does not return anything, trying to access anything as a function will naturally lead to an error - andreymal
  • one
    And yes, it is not good to change the code without warning. Yesterday the code was completely different (@insolor keep this in mind) - andreymal
  • one
    @John, in the code by reference, the error indicated in the question is not reproduced. Add the code in which the problem exists directly to the question text. - insolor

0