Whitespaces


#1

Why Whitespaces are used in Python?


#2

To structure code so it's easily readable for you and others.


#3

This is true for Js and many other language, also a bit for python

But in python whitespaces (indent) it also used to determine nesting, what is nested inside a function, loop and so on

@megaslayer41367, why? Because van rossum (creator of python) found it a good idea, so your code would stay readable. You will ask him, see if you can google why he made this design choice for python


#4

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