小数点以下の数字を印刷するのに問題があります。 私は、pythonを実行し、結果が小数点のある数値でなければならない部門を行うように頼んだら、小数点を表示しません。例えば、私はちょうどこのアルゴリズム をした:小数点以下の数字を印刷
print 'Report card calculation'
grade1 = input ('Insert the first grade: ')
grade2 = input ('Insert the second grade: ')
grade3 = input ('Insrt the third grade: ')
media = (grade1 + grade2 + grade3)/3
print 'Your final result is', media
をしかし、それは、「メディア」、小数点は小数点が付属していない必要があります番号を印刷したとき。どうすれば修正できますか?
あなたの入力?それらは整数ですか? –