Problem when pasting in a file

This is an error report.


Screenshot of the error


Error details

The problem is that I copy the code that is in the left part, but when i paste it in the file, the first lines copies it correctly, but at some point it starts to add a tabulator every line that has something written in it. The first lines it isn't a problem, because you can just erase the tabulator, but for example in this one, the last line that is only a simple "pass", is located in the position 533 of the line. I tried to run the files like this, but it says that there is an index error. I think the problem has something to do with pasting, because I have tried pasting it outside of the website in my own terminal and it copied it well. I'd like a solution, because if the file is short there is no problem, but if it is long the time needed to fix it grows fast. Thank you.

You are pasting the code in the wrong place, the terminal.

Open the file you created in the IDE (top-middle part) and paste the code into it.

Thank you, that solved my problem.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.