Question:  In fourth grade there were 40 students at the start of the year. During the year 14 students left and 26 new students came to school. How many students were in fourth grade at the end? 

Solution program:
answer=((40.0+26.0)-14.0)
print(answer)

Answer: 52