Forum Archive

Indentation

mistahbtb

Hi I am having trouble with indentation. I am not new to coding or Python but it keeps flagging up and indentation error when I know there isn't one. Has anyone any advice?

Thanks

Rob

I would probably start by:

  • copy-pasting the code to an editor which makes spaces and tabs visible,
  • looking quickly for tab/space mixes, and then
  • standardising consistently on one or the other.
JonB

The editor shows whichever style you don't have set as default, either as dots, or bars.
Why don't you paste an example here, surrounded by 3backtics with a blank line before, ```