Good Morning,
I am new to programming and these forums. I plan on becoming a little more active here and on IRC while working toward my degree.
This morning I'm trying to work toward an assignment I have yet to start/complete. I did class work on the subject last Friday so I have an idea how loops work.
The homework I'm doing is just like the class work, except it uses fractions instead to sum. When I change the loop condition to a fraction number I get the floating point error because I believe the loop wants integers.
If someone could give me an idea where to inject fractions or point to a reference where I could find out more I'd appreciate it. Thanks
This is a sample of the class work loop (PYTHON 3):
I am new to programming and these forums. I plan on becoming a little more active here and on IRC while working toward my degree.
This morning I'm trying to work toward an assignment I have yet to start/complete. I did class work on the subject last Friday so I have an idea how loops work.
The homework I'm doing is just like the class work, except it uses fractions instead to sum. When I change the loop condition to a fraction number I get the floating point error because I believe the loop wants integers.
If someone could give me an idea where to inject fractions or point to a reference where I could find out more I'd appreciate it. Thanks
This is a sample of the class work loop (PYTHON 3):
sum = 0 for count in range(0, 10, 1): print((count+1), end=" ") print(" = ", sum)