python - Function breaks all code that come after it -


i've started working on small game. i've created function breaks code follows it. here's full function:

def printboard(currentboard): #prints out game board x in range(5):     #prints out 50 character line x     print (' '.join(str(currentboard[x*50:(x+1)*50])) 

although still works this:

def printboard(currentboard):     print (' '.join(str(currentboard[x*50:(x+1)*50])) 

even things like:

print("hello") 

won't work after it. i've tried switching around variable names , such error error still remains.

looks missing closing ")"


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -