Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

NZEC ERROR WHILE USING raw_input()

$
0
0

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?


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>