There is a piece of code that is giving me trouble
i have the variable Average = 94.56 and and another arbitrary variable student
I am asked to print this variable but in the string i must format it such that instead of 94.56 i get 94.6 when i call the print function so this is what i have
print(Student + " " + 'class average was' + " " + str(Average + .04))
but i get this ugly number
- Elsa Martinez class average was 94.60000000000001
Why does it do this and how can i just get 94.6
thanks