Can you please explain why python has indentation. What are the advantages of that?
Question:
I do not understand why it requires indentation. Why can’t it just run without it?
Answers:
Because it provides a way to make the code clearer.
Because the guy who created the language wanted it that way.
https://docs.python.org/3/faq/design.html#why-does-python-use-indentation-for-grouping-of-statements
I do not understand why it requires indentation. Why can’t it just run without it?
Because it provides a way to make the code clearer.
Because the guy who created the language wanted it that way.
https://docs.python.org/3/faq/design.html#why-does-python-use-indentation-for-grouping-of-statements