I am trying to plot a curve.
code:
    f5=[]
    r4=[]
    for Re in range(2300,1e6,1e5):
    def f_transition_turbulent(Re,ftol=0.001, MaxIter=1000):
        error=10
        Iter_num=0
        f0=0.3164/(Re)**0.25
        while error>ftol and Iter_num<MaxIter:
            f4=1/(2*np.log(Re*np.sqrt(f0))-0.8)**2
            error=abs(f4-f0)
            Iter_num=Iter_num+1
            f0=f4
        return f4
        f5.append(f4)
        r4.append(Re)
    plt.loglog(r4,f5,color='b',lw=2)
After running this I am getting the error as
Range=range(2300,1e6,1e5)
TypeError: 'float' object cannot be interpreted as an integer
