Can’t get my code to end on a certain variable
This is some homework I have to do for programming class, however I can’t figure out what I’m doing wrong. The questions instructions ask that I only use while loops, int, float, if, else/elif, and print. The question itself asks for there to be three inputs, the starting number (an integer), the end number (also an integer) and the increment to count up or down by (a float), and to use these inputs to count up or down from the start number to the end number. When I put 5 for the starting number, 1 for the end number, and 1.5 for the increment to count by, it puts out 5.0, 3.5, 2.0, and 1.5. These are the variables I am supposed to put in per the questions instructions, and I should be getting 5.0, 3.5, and 2.0. What have I done incorrectly? Sorry for the long question but any help would be appreciated https://code.sololearn.com/cTS0e1oyU281/?ref=app