Hi I was able to get the code working by following the below, but also changing a bunch of variable names seemed to work. Perhaps I was using variables that were recognized by my encoder _UTF-8. Thanks for the help
dt =0.1
a=100
n=int(a/dt)
kgrow=1; kshrink =0.25
pgrow=kgrow*dt ;
pshrink=kshrink*dt
length =[]
l=0
times =[] t=0
for i in range(n):
t+=dt
times.append(t)
randgrow=random.random()
randshrink=random.random()
length.append(l)
time=np.array(times)
lengths=np.array(length)
plt. plot (times,length)
plt. xlabel('Time')
plt.ylabel('Length')