What is an SCT error and how can I fix it?


What is an SCT error and how can I fix it?


If you see an SCT error in any exercise on Codecademy when running your code, it’s likely an issue with the browser or a temporary bug in Codecademy’s environment.
Typically the following fixes it:

  1. Use Chrome as your browser
  2. Clear your browser cache and press Ctrl + F5 (Windows) or Cmd + Shift + R (Mac)
    If that doesn’t work, and your code is correct otherwise, it may be a bug that is being worked out.

Why does Codecademy take a while for displaying the result whenever I enter raw_input() in the code editor?


This still isn’t fixed? I check my code and everything was in order, but it still won’t run properly.
I had to use Solution to get it done. I recheck my code and the Solution’s code and it was the same, but it still won’t run properly


same here, even when I use the solution given it gives an error on this exercise. Does anyone have any luck getting thru this exercise without using the solution and going forward?
also, why does it change code from previous screen to next
def random_row(board):

return randint(0, len(board) - 1)

def random_col(board):

return randint(0, len(board[0]) - 1)

not sure why it puts board[0] in the col?

Hello @core0852353437 and welcome to the Codecademy Forums!

Could you post a link to the exercise you are referring to?

Sometimes, the code changes from the previous exercise to the next because Codecademy’s solution may have been different and they want you to use their solution. This is necessary sometimes because the instructions provided on the following exercise might require you to start with their exact solution.

Part 8/19 of the Battleship project in the Python 2 course. Still doesn’t work.


The problem is still there…

My code doesn’t work, it runs on the console, and everything goes fine until I write a number in the console in the "Guess Row: ", then it gives me this error:
Traceback (most recent call last):
File “python”, line 22, in
ExecTimeoutException: Program took too long to terminate.
This is my code.

from random import randint

board = []

for x in range(0, 5):
  board.append(["O"] * 5)

def print_board(board):
  for row in board:
    print " ".join(row)

def random_row(board):
  return randint(0, len(board) - 1)

def random_col(board):
  return randint(0, len(board[0]) - 1)

ship_row = random_row(board)
ship_col = random_col(board)

# Add your code below!
guess_row = int(raw_input("Guess Row: "))
guess_col = int(raw_input("Guess Col: "))

I’m using Firefox instead of the recommended Chrome and occassionally I’ll get the " It took too long" error message. After pressing Ctrl F5 to clear the cache, the problem usually goes away for me. Worst case scenario, I clear the cache via the options menu and restart Firefox. That also has worked in a jam.

1 Like

I’m using SeaMonkey (which is a combination of the Firefox rendering engine and the Thunderbird Mail and News client) and I too had this same problem. Ctrl F5 didn’t work for me but just F5 (without the Ctrl) refreshed the page after which I was able to run and type in my answers without the SCT error

Hello, is anyone checking this? From slide 8 onwards this exercise is still throwing a “Took too long to terminate” error, even when I import the Lesson’s solution. I am using Chrome. It’s now slowing down each lesson from 8 onwards since they are all using the same code. Thanks in advance!

Still the same error and with the cache clean…

My code was perfect, but at the end, I just delete it, copy the bottom solution and the program still loading but the next bottom become avaliable. Finally!<3

1 Like