NZEC ERROR WHILE USING raw_input()

def change(s1,k1,ind):
for i in range(k1):
if s1[ind]==‘X’:
s1[ind]=‘O’
else:
s1[ind]=‘X’
ind+=1
return s1
t=raw_input()
t=t.upper()
n=input()
l=len(t)
s=0
j=‘O’*n
while s<=l:
t=list(t)
if ‘X’ in t:
p=t.index(‘X’)
s=p+n
if s<=l:
t=change(t,n,p)
else:
s=l+1
else:
s=l+1
print t.count(‘O’)

why am I getting NZEC error in the line “t=raw-input()”, during compilation?

your code is not at all readable… In the questions section, dont straight away copy paste your code ; rather describe what the error is ( as you told that it is NCEC ) and provide a link to your code…

I think that you are using python…

And python is serious when whitespaces are concerned, the indent size matters…

So when you write everything in one line, no one is gonna Easily make out the error in your code…

The forum members are kind ; maybe I cant take out the error in your code even after you provide the actual submitted code… but someone surely will…

So provide a proper link first…