I'm pretty new to python and am trying to do a relatively simple thing the right way.
I'm trying to devide all the numbers from 0 to 9 by 9
CODE
for i in range(0, 9):
j = i / 9
print j
the result will be all zero's i believe due to the need of typecasts.
my weird fix would be to do this.
CODE
for i in range(0, 9):
j = i + 0.0
j = j / 9
print j
is there a better method of doing something simple like this.