My console keeps closing in the middle of execution, and I am not sure why. I have attached what the console outputs below.
You are in the tarpit, this may take longer than usual. See https://www.pythonanywhere.com/tarpit for more information. Loading console... Preparing execution environment... Console Closed