Code is showing error

I first start from july challenge where my code is running well in pycharm ,but its not working in codechef. To confirm that i solve ATM problem to confirm whether its my fault or anything else.
But again my code is working in pycharm but its showing error i also use
try and except method but its showing me error.
PLEASE HELP ME THIS IS A GREAT ISSUE FOR ME AS I AM UNABLE TO SUBMIT MY CODE
PLEASE @admin help me!!

try:
x=int(input())
y=float(input())
if(y>x):
if(x%5==0):
p=y-x-.50
print§
else:
print(y)
else:
print(y)
except:
pass

THIS IS MY ATM PROBLEM SOLUTION

IN LINE 6 IT’S print§

Just do this:

x=int(input())
y=float(input())
if(x%5==0):
p=y-x-.50
print § #Its print p, dont know why it doesnt print
else:
print(y)