ERROR: LoadError: syntax: unexpected "]"

Help me please to identify the source of this error:

‘’'war[k in 1:interval:length(TIME) if k>=1+interval && k<length(TIME)],

PL[k]==PL[k-interval]+sum(PROD[o,f,p,j,t] for o in O, f in F, p in PR[f], j in U, t in k:interval:k-1 if

t<deadline[o] && ord(o)<=23 && ord(f)<=13 && ord(p)<=45)‘’’

The error is in the first line, however, not visible for me:
ERROR: LoadError: syntax: unexpected “]”

if was the problem. Thanks anyway.

Note you can quote your code: PSA: how to quote code with backticks, makes it easier to help you.