Do I need indentation in python scripts or is it only when typing stuff in the command line?

Question by worried person: Do I need indentation in python scripts or is it only when typing stuff in the command line?
I am asking so many python questions, I know, but do I need indentation in python scripts or is it only when typing stuff in the command line?

Best answer:

Answer by maniacmartinuk
You need the correct tabs to indent – theyre part of the syntax (e.g. end of a for loop is determined by removing a level of indentation.)

Give your answer to this question below!

Get the book now