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

Solution program:
answer=((10.0+42.0)-4.0)
print(answer)

Answer: 48