I got nzec error in my code but it works in pycharm.

def main():
   l1=[]
   l2=["amount to withdraw","your balance"]
   def with_draw(x,y):
      if(x>y):
         print("Remaining balance: %.2f"%(y))
      elif(y>x):
         if(x%5==0):
            z=float(y-x)
            z=z-0.5
            print("Remaining balance: %.2f"%(z))
         else:
            print("Remaining balance: %.2f"%(y))
      elif(x==y):
         if(x%5==0):
            print("Remaining balance:{}".format("0.0"))
         else:
            print("Remaining balance: %2.f"%(y))   
   print("Plz Enter amount to withdraw and your balance.")
   for i in range(2):
       l1.append(int(input("%s:"%l2[i])))
   with_draw(l1[0],l1[1])
main()

You don’t need to print anything while taking input. A simple input() would do. Only print exactly what the problem expects, nothing else.

If you are trying to solve this problem Contest Page | CodeChef
You just need to print the balance, nothing else.