Answer:
The program which you have written should work fine.
If you feel if there is a problem, first you can first clear all the cached memory using “ccleaner” or any other software, restart the system, and once again try to execute. If it is giving you an error especially in the below line,
print (x / y)
Some language consider “/” as extra or special character, so you can always use “escape sequence”.
For eg. x \/y might work out.
Alternatively you can try splitting the calculation and the printing part.
c = x / y
print c