Scientific Computing with Python Projects - Arithmetic Formatter

i get the following error

invalid syntax line 3