この質問がすでに出されていたら、大変申し訳ありません。
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)
パーセンテージで0を取得しています。どうすれば.5と言うことができますか? 数値を 4.0 と 2.0 と入力すると、目的の結果が得られることはわかっていますが、それを行う別の方法はありますか?