TypeError: can not unpack non-iterable NoneType object

0

I have a function that after making several calculations ends with 3 float variables. When I return them I get the following error, what does it mean?

  

TypeError: can not unpack non-iterable NoneType object

def funcion():
    ...
    a = float1
    b = float2
    c = float3
    return a,b,c

a, b, c = funcion(param_anterior)

I do not understand why it is a type error if I end up with three values, which are the ones that I return and are the ones I will want to work with in the future.

    
asked by NEA 02.11.2018 в 19:14
source

0 answers