0
Good evening. I have the following Python code which, when calculating the variable h, the cited error appears:
x=[]
y=[]
erro=[]
h=[]
x=0.1
y=0.1
for i in range (40):
    x=x**2-0.391*x
    y=y*(y-0.391)
    import math
    erro.append(math.fabs((x-y)/2))
erro.remove(0)
h.append(math.log10(erro)) 
						
The object
errois a list of 40 positions and you are trying to calculate the log from this list. The functionlog10expects a parameter of typefloat, not a list.– Woss