Can you use float numbers in this for loop?
<p>I need some help.
I'm trying to make my for loop work with decimals, but my code won't accept floats and I'm not sure what to do next. Can anyone point out where I went wrong?</p>

<p>It's a code used for converting Celsius to Fahrenheit in steps (Delta) that the user defines. Here it is:</p>

<pre><code>def main():

    # Handshake
    print("This program will convert a range of Celsius degrees to")
    print("Fahrenheit degrees based on your input.")

    # Ask and read low end of range
    Rangelow = eval(input("Enter the low end of your range: "))

    # Ask and read top end of range
    Rangehigh = 1 + eval(input("Enter the high end of your range: "))

    # Ask and read Delta
    Delta = eval(input("Enter the Delta for your range: "))

    #Display output
    print("Celsius to Fahrenheit by", Delta)
    for i in range(Rangelow, Rangehigh, Delta):
        print(i, "               ", 9/5 * i + 32)



main()
</code></pre>

<p>This is an example of what I mean:</p>

<p>This program will convert a range of Celsius degrees to
Fahrenheit degrees based on your input.
Enter the low end of your range: 3.8
Enter the high end of your range: 14.7
Enter the Delta for your range: 1.1
Celsius to Fahrenheit by 1.1
Traceback (most recent call last):
  File "C:\Users\jarre\Desktop\Python Programs\Conversion.py", line 27, in 
    main()
  File "C:\Users\jarre\Desktop\Python Programs\Conversion.py", line 22, in main
    for i in range(Rangelow, Rangehigh + 1, Delta):
TypeError: 'float' object cannot be interpreted as an integer</p>

<p>I should note that the problem seems to lie with the input, the output has no issue throwing out a decimal after the input has been converted.</p>