Possible Duplicate:
how can I force division to be floating point in Python?
I'm very sorry if this question has been asked already.
timothy_lewis_three_pointers_attempted = 4
timothy_lewis_three_pointers_made = 2
print 'three pointers attempted: ' + str(timothy_lewis_three_pointers_attempted)
print 'three pointers made: ' + str(timothy_lewis_three_pointers_made)
print 'three point percentage: ' + str(timothy_lewis_three_point_percentage)
I'm getting 0 for the percentage. How do I get it to say .5? I know that if I type the numbers as 4.0 and 2.0, I'll get the desired result, but is there another way of doing it?